defs.json 24 KB

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