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