defs.json 24 KB

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