defs.json 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842
  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. "metadata": "Bytes"
  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"
  524. }
  525. },
  526. "DataObject": {
  527. "accepted": "bool",
  528. "deletion_prize": "u128",
  529. "size": "u64",
  530. "ipfsContentId": "Bytes"
  531. },
  532. "DistributionBucketId": "u64",
  533. "DistributionBucketFamilyId": "u64",
  534. "DistributionBucket": {
  535. "accepting_new_bags": "bool",
  536. "distributing": "bool",
  537. "pending_invitations": "BTreeSet<WorkerId>",
  538. "operators": "BTreeSet<WorkerId>",
  539. "assigned_bags": "u64"
  540. },
  541. "DistributionBucketFamily": {
  542. "distribution_buckets": "BTreeMap<DistributionBucketId,DistributionBucket>"
  543. },
  544. "DataObjectIdMap": "BTreeMap<DataObjectId,DataObject>",
  545. "DistributionBucketIdSet": "BTreeSet<DistributionBucketId>",
  546. "DynamicBagCreationPolicyDistributorFamiliesMap": "BTreeMap<DistributionBucketFamilyId,u32>",
  547. "ProposalId": "u32",
  548. "ProposalStatus": {
  549. "_enum": {
  550. "Active": "Option<ActiveStake>",
  551. "Finalized": "Finalized"
  552. }
  553. },
  554. "ProposalOf": {
  555. "parameters": "ProposalParameters",
  556. "proposerId": "MemberId",
  557. "title": "Bytes",
  558. "description": "Bytes",
  559. "createdAt": "u32",
  560. "status": "ProposalStatus",
  561. "votingResults": "VotingResults"
  562. },
  563. "ProposalDetails": {
  564. "_enum": {
  565. "Text": "Bytes",
  566. "RuntimeUpgrade": "Bytes",
  567. "SetElectionParameters": "ElectionParameters",
  568. "Spending": "(Balance,AccountId)",
  569. "SetLead": "Option<SetLeadParams>",
  570. "SetContentWorkingGroupMintCapacity": "u128",
  571. "EvictStorageProvider": "GenericAccountId",
  572. "SetValidatorCount": "u32",
  573. "SetStorageRoleParameters": "RoleParameters",
  574. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  575. "BeginReviewWorkingGroupLeaderApplication": "(OpeningId,WorkingGroup)",
  576. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  577. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  578. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  579. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  580. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  581. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  582. }
  583. },
  584. "ProposalDetailsOf": {
  585. "_enum": {
  586. "Text": "Bytes",
  587. "RuntimeUpgrade": "Bytes",
  588. "SetElectionParameters": "ElectionParameters",
  589. "Spending": "(Balance,AccountId)",
  590. "SetLead": "Option<SetLeadParams>",
  591. "SetContentWorkingGroupMintCapacity": "u128",
  592. "EvictStorageProvider": "GenericAccountId",
  593. "SetValidatorCount": "u32",
  594. "SetStorageRoleParameters": "RoleParameters",
  595. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  596. "BeginReviewWorkingGroupLeaderApplication": "(OpeningId,WorkingGroup)",
  597. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  598. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  599. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  600. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  601. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  602. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  603. }
  604. },
  605. "VotingResults": {
  606. "abstensions": "u32",
  607. "approvals": "u32",
  608. "rejections": "u32",
  609. "slashes": "u32"
  610. },
  611. "ProposalParameters": {
  612. "votingPeriod": "u32",
  613. "gracePeriod": "u32",
  614. "approvalQuorumPercentage": "u32",
  615. "approvalThresholdPercentage": "u32",
  616. "slashingQuorumPercentage": "u32",
  617. "slashingThresholdPercentage": "u32",
  618. "requiredStake": "Option<u128>"
  619. },
  620. "VoteKind": {
  621. "_enum": [
  622. "Approve",
  623. "Reject",
  624. "Slash",
  625. "Abstain"
  626. ]
  627. },
  628. "ThreadCounter": {
  629. "author_id": "MemberId",
  630. "counter": "u32"
  631. },
  632. "DiscussionThread": {
  633. "title": "Bytes",
  634. "created_at": "u32",
  635. "author_id": "MemberId"
  636. },
  637. "DiscussionPost": {
  638. "text": "Bytes",
  639. "created_at": "u32",
  640. "updated_at": "u32",
  641. "author_id": "MemberId",
  642. "thread_id": "ThreadId",
  643. "edition_number": "u32"
  644. },
  645. "AddOpeningParameters": {
  646. "activate_at": "ActivateOpeningAt",
  647. "commitment": "OpeningPolicyCommitment",
  648. "human_readable_text": "Bytes",
  649. "working_group": "WorkingGroup"
  650. },
  651. "FillOpeningParameters": {
  652. "opening_id": "OpeningId",
  653. "successful_application_id": "ApplicationId",
  654. "reward_policy": "Option<RewardPolicy>",
  655. "working_group": "WorkingGroup"
  656. },
  657. "TerminateRoleParameters": {
  658. "worker_id": "WorkerId",
  659. "rationale": "Bytes",
  660. "slash": "bool",
  661. "working_group": "WorkingGroup"
  662. },
  663. "ActiveStake": {
  664. "stake_id": "StakeId",
  665. "source_account_id": "GenericAccountId"
  666. },
  667. "Finalized": {
  668. "proposalStatus": "ProposalDecisionStatus",
  669. "finalizedAt": "u32",
  670. "encodedUnstakingErrorDueToBrokenRuntime": "Option<Vec<u8>>",
  671. "stakeDataAfterUnstakingError": "Option<ActiveStake>"
  672. },
  673. "ProposalDecisionStatus": {
  674. "_enum": {
  675. "Canceled": "Null",
  676. "Vetoed": "Null",
  677. "Rejected": "Null",
  678. "Slashed": "Null",
  679. "Expired": "Null",
  680. "Approved": "Approved"
  681. }
  682. },
  683. "ExecutionFailed": {
  684. "error": "Bytes"
  685. },
  686. "Approved": {
  687. "_enum": {
  688. "PendingExecution": "Null",
  689. "Executed": "Null",
  690. "ExecutionFailed": "ExecutionFailed"
  691. }
  692. },
  693. "SetLeadParams": "(MemberId,GenericAccountId)",
  694. "CuratorId": "u64",
  695. "CuratorGroupId": "u64",
  696. "CuratorGroup": {
  697. "curators": "BTreeSet<CuratorId>",
  698. "active": "bool"
  699. },
  700. "ContentActor": {
  701. "_enum": {
  702. "Curator": "(CuratorGroupId,CuratorId)",
  703. "Member": "MemberId",
  704. "Lead": "Null"
  705. }
  706. },
  707. "StorageAssets": {
  708. "object_creation_list": "Vec<DataObjectCreationParameters>",
  709. "expected_data_size_fee": "u128"
  710. },
  711. "Channel": {
  712. "owner": "ChannelOwner",
  713. "num_videos": "u64",
  714. "is_censored": "bool",
  715. "reward_account": "Option<GenericAccountId>",
  716. "deletion_prize_source_account_id": "GenericAccountId"
  717. },
  718. "ChannelOwner": {
  719. "_enum": {
  720. "Member": "MemberId",
  721. "Curators": "CuratorGroupId"
  722. }
  723. },
  724. "ChannelCategoryId": "u64",
  725. "ChannelCategory": {},
  726. "ChannelCategoryCreationParameters": {
  727. "meta": "Bytes"
  728. },
  729. "ChannelCategoryUpdateParameters": {
  730. "new_meta": "Bytes"
  731. },
  732. "ChannelCreationParameters": {
  733. "assets": "Option<StorageAssets>",
  734. "meta": "Option<Bytes>",
  735. "reward_account": "Option<GenericAccountId>"
  736. },
  737. "ChannelUpdateParameters": {
  738. "assets_to_upload": "Option<StorageAssets>",
  739. "new_meta": "Option<Bytes>",
  740. "reward_account": "Option<Option<GenericAccountId>>",
  741. "assets_to_remove": "BTreeSet<DataObjectId>"
  742. },
  743. "ChannelOwnershipTransferRequestId": "u64",
  744. "ChannelOwnershipTransferRequest": {
  745. "channel_id": "ChannelId",
  746. "new_owner": "ChannelOwner",
  747. "payment": "u128",
  748. "new_reward_account": "Option<GenericAccountId>"
  749. },
  750. "Video": {
  751. "in_channel": "ChannelId",
  752. "in_series": "Option<SeriesId>",
  753. "is_censored": "bool"
  754. },
  755. "VideoId": "u64",
  756. "VideoCategoryId": "u64",
  757. "VideoCategory": {},
  758. "VideoCategoryCreationParameters": {
  759. "meta": "Bytes"
  760. },
  761. "VideoCategoryUpdateParameters": {
  762. "new_meta": "Bytes"
  763. },
  764. "VideoCreationParameters": {
  765. "assets": "Option<StorageAssets>",
  766. "meta": "Option<Bytes>"
  767. },
  768. "VideoUpdateParameters": {
  769. "assets_to_upload": "Option<StorageAssets>",
  770. "new_meta": "Option<Bytes>",
  771. "assets_to_remove": "BTreeSet<DataObjectId>"
  772. },
  773. "Person": {
  774. "controlled_by": "PersonController"
  775. },
  776. "PersonId": "u64",
  777. "PersonController": {
  778. "_enum": {
  779. "Member": "MemberId",
  780. "Curators": "Null"
  781. }
  782. },
  783. "PersonActor": {
  784. "_enum": {
  785. "Member": "MemberId",
  786. "Curator": "CuratorId"
  787. }
  788. },
  789. "PersonCreationParameters": {
  790. "assets": "StorageAssets",
  791. "meta": "Bytes"
  792. },
  793. "PersonUpdateParameters": {
  794. "assets": "Option<StorageAssets>",
  795. "meta": "Option<Bytes>"
  796. },
  797. "Playlist": {
  798. "in_channel": "ChannelId"
  799. },
  800. "PlaylistId": "u64",
  801. "PlaylistCreationParameters": {
  802. "meta": "Bytes"
  803. },
  804. "PlaylistUpdateParameters": {
  805. "new_meta": "Bytes"
  806. },
  807. "SeriesId": "u64",
  808. "Series": {
  809. "in_channel": "ChannelId",
  810. "seasons": "Vec<Season>"
  811. },
  812. "Season": {
  813. "episodes": "Vec<VideoId>"
  814. },
  815. "SeriesParameters": {
  816. "assets": "Option<StorageAssets>",
  817. "seasons": "Option<Vec<Option<SeasonParameters>>>",
  818. "meta": "Option<Bytes>"
  819. },
  820. "SeasonParameters": {
  821. "assets": "Option<StorageAssets>",
  822. "episodes": "Option<Vec<Option<EpisodeParemters>>>",
  823. "meta": "Option<Bytes>"
  824. },
  825. "EpisodeParemters": {
  826. "_enum": {
  827. "NewVideo": "VideoCreationParameters",
  828. "ExistingVideo": "VideoId"
  829. }
  830. },
  831. "MaxNumber": "u32",
  832. "IsCensored": "bool",
  833. "VideoMigrationConfig": {
  834. "current_id": "VideoId",
  835. "final_id": "VideoId"
  836. },
  837. "ChannelMigrationConfig": {
  838. "current_id": "ChannelId",
  839. "final_id": "ChannelId"
  840. },
  841. "AccountInfo": "AccountInfoWithRefCount"
  842. }