defs.json 27 KB

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