defs.json 27 KB

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