defs.json 24 KB

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