defs.json 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835
  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. "LiaisonJudgement": {
  489. "_enum": [
  490. "Pending",
  491. "Accepted",
  492. "Rejected"
  493. ]
  494. },
  495. "DataObject": {
  496. "owner": "StorageObjectOwner",
  497. "added_at": "BlockAndTime",
  498. "type_id": "DataObjectTypeId",
  499. "size": "u64",
  500. "liaison": "StorageProviderId",
  501. "liaison_judgement": "LiaisonJudgement",
  502. "ipfs_content_id": "Text"
  503. },
  504. "DataObjectStorageRelationshipId": "u64",
  505. "DataObjectStorageRelationship": {
  506. "content_id": "ContentId",
  507. "storage_provider": "StorageProviderId",
  508. "ready": "bool"
  509. },
  510. "DataObjectTypeId": "u64",
  511. "DataObjectType": {
  512. "description": "Text",
  513. "active": "bool"
  514. },
  515. "DataObjectsMap": "BTreeMap<ContentId,DataObject>",
  516. "ContentParameters": {
  517. "content_id": "ContentId",
  518. "type_id": "DataObjectTypeId",
  519. "size": "u64",
  520. "ipfs_content_id": "Bytes"
  521. },
  522. "StorageObjectOwner": {
  523. "_enum": {
  524. "Member": "MemberId",
  525. "Channel": "ChannelId",
  526. "DAO": "DAOId",
  527. "Council": "Null",
  528. "WorkingGroup": "WorkingGroup"
  529. }
  530. },
  531. "ObjectOwner": {
  532. "_enum": {
  533. "Member": "MemberId",
  534. "Channel": "ChannelId",
  535. "DAO": "DAOId",
  536. "Council": "Null",
  537. "WorkingGroup": "WorkingGroup"
  538. }
  539. },
  540. "Voucher": {
  541. "size_limit": "u64",
  542. "objects_limit": "u64",
  543. "size_used": "u64",
  544. "objects_used": "u64"
  545. },
  546. "VoucherLimit": "u64",
  547. "UploadingStatus": "bool",
  548. "ProposalId": "u32",
  549. "ProposalStatus": {
  550. "_enum": {
  551. "Active": "Option<ActiveStake>",
  552. "Finalized": "Finalized"
  553. }
  554. },
  555. "ProposalOf": {
  556. "parameters": "ProposalParameters",
  557. "proposerId": "MemberId",
  558. "title": "Text",
  559. "description": "Text",
  560. "createdAt": "u32",
  561. "status": "ProposalStatus",
  562. "votingResults": "VotingResults"
  563. },
  564. "ProposalDetails": {
  565. "_enum": {
  566. "Text": "Text",
  567. "RuntimeUpgrade": "Bytes",
  568. "SetElectionParameters": "ElectionParameters",
  569. "Spending": "(Balance,AccountId)",
  570. "SetLead": "Option<SetLeadParams>",
  571. "SetContentWorkingGroupMintCapacity": "u128",
  572. "EvictStorageProvider": "GenericAccountId",
  573. "SetValidatorCount": "u32",
  574. "SetStorageRoleParameters": "RoleParameters",
  575. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  576. "BeginReviewWorkingGroupLeaderApplication": "(OpeningId,WorkingGroup)",
  577. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  578. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  579. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  580. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  581. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  582. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  583. }
  584. },
  585. "ProposalDetailsOf": {
  586. "_enum": {
  587. "Text": "Text",
  588. "RuntimeUpgrade": "Bytes",
  589. "SetElectionParameters": "ElectionParameters",
  590. "Spending": "(Balance,AccountId)",
  591. "SetLead": "Option<SetLeadParams>",
  592. "SetContentWorkingGroupMintCapacity": "u128",
  593. "EvictStorageProvider": "GenericAccountId",
  594. "SetValidatorCount": "u32",
  595. "SetStorageRoleParameters": "RoleParameters",
  596. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  597. "BeginReviewWorkingGroupLeaderApplication": "(OpeningId,WorkingGroup)",
  598. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  599. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  600. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  601. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  602. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  603. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  604. }
  605. },
  606. "VotingResults": {
  607. "abstensions": "u32",
  608. "approvals": "u32",
  609. "rejections": "u32",
  610. "slashes": "u32"
  611. },
  612. "ProposalParameters": {
  613. "votingPeriod": "u32",
  614. "gracePeriod": "u32",
  615. "approvalQuorumPercentage": "u32",
  616. "approvalThresholdPercentage": "u32",
  617. "slashingQuorumPercentage": "u32",
  618. "slashingThresholdPercentage": "u32",
  619. "requiredStake": "Option<u128>"
  620. },
  621. "VoteKind": {
  622. "_enum": [
  623. "Approve",
  624. "Reject",
  625. "Slash",
  626. "Abstain"
  627. ]
  628. },
  629. "ThreadCounter": {
  630. "author_id": "MemberId",
  631. "counter": "u32"
  632. },
  633. "DiscussionThread": {
  634. "title": "Bytes",
  635. "created_at": "u32",
  636. "author_id": "MemberId"
  637. },
  638. "DiscussionPost": {
  639. "text": "Bytes",
  640. "created_at": "u32",
  641. "updated_at": "u32",
  642. "author_id": "MemberId",
  643. "thread_id": "ThreadId",
  644. "edition_number": "u32"
  645. },
  646. "AddOpeningParameters": {
  647. "activate_at": "ActivateOpeningAt",
  648. "commitment": "OpeningPolicyCommitment",
  649. "human_readable_text": "Bytes",
  650. "working_group": "WorkingGroup"
  651. },
  652. "FillOpeningParameters": {
  653. "opening_id": "OpeningId",
  654. "successful_application_id": "ApplicationId",
  655. "reward_policy": "Option<RewardPolicy>",
  656. "working_group": "WorkingGroup"
  657. },
  658. "TerminateRoleParameters": {
  659. "worker_id": "WorkerId",
  660. "rationale": "Bytes",
  661. "slash": "bool",
  662. "working_group": "WorkingGroup"
  663. },
  664. "ActiveStake": {
  665. "stake_id": "StakeId",
  666. "source_account_id": "GenericAccountId"
  667. },
  668. "Finalized": {
  669. "proposalStatus": "ProposalDecisionStatus",
  670. "finalizedAt": "u32",
  671. "encodedUnstakingErrorDueToBrokenRuntime": "Option<Vec<u8>>",
  672. "stakeDataAfterUnstakingError": "Option<ActiveStake>"
  673. },
  674. "ProposalDecisionStatus": {
  675. "_enum": {
  676. "Canceled": "Null",
  677. "Vetoed": "Null",
  678. "Rejected": "Null",
  679. "Slashed": "Null",
  680. "Expired": "Null",
  681. "Approved": "Approved"
  682. }
  683. },
  684. "ExecutionFailed": {
  685. "error": "Text"
  686. },
  687. "Approved": {
  688. "_enum": {
  689. "PendingExecution": "Null",
  690. "Executed": "Null",
  691. "ExecutionFailed": "ExecutionFailed"
  692. }
  693. },
  694. "SetLeadParams": "(MemberId,GenericAccountId)",
  695. "CuratorId": "u64",
  696. "CuratorGroupId": "u64",
  697. "CuratorGroup": {
  698. "curators": "Vec<CuratorId>",
  699. "active": "bool"
  700. },
  701. "ContentActor": {
  702. "_enum": {
  703. "Curator": "(CuratorGroupId,CuratorId)",
  704. "Member": "MemberId",
  705. "Lead": "Null"
  706. }
  707. },
  708. "NewAsset": {
  709. "_enum": {
  710. "Upload": "ContentParameters",
  711. "Urls": "Vec<Url>"
  712. }
  713. },
  714. "Channel": {
  715. "owner": "ChannelOwner",
  716. "videos": "Vec<VideoId>",
  717. "playlists": "Vec<PlaylistId>",
  718. "series": "Vec<SeriesId>",
  719. "is_censored": "bool",
  720. "reward_account": "Option<GenericAccountId>"
  721. },
  722. "ChannelOwner": {
  723. "_enum": {
  724. "Member": "MemberId",
  725. "Curators": "CuratorGroupId",
  726. "Dao": "DAOId"
  727. }
  728. },
  729. "ChannelCategoryId": "u64",
  730. "ChannelCategory": {},
  731. "ChannelCategoryCreationParameters": {
  732. "meta": "Bytes"
  733. },
  734. "ChannelCategoryUpdateParameters": {
  735. "new_meta": "Bytes"
  736. },
  737. "ChannelCreationParameters": {
  738. "assets": "Vec<NewAsset>",
  739. "meta": "Bytes",
  740. "reward_account": "Option<GenericAccountId>"
  741. },
  742. "ChannelUpdateParameters": {
  743. "assets": "Option<Vec<NewAsset>>",
  744. "new_meta": "Option<Bytes>",
  745. "reward_account": "Option<Option<GenericAccountId>>"
  746. },
  747. "ChannelOwnershipTransferRequestId": "u64",
  748. "ChannelOwnershipTransferRequest": {
  749. "channel_id": "ChannelId",
  750. "new_owner": "ChannelOwner",
  751. "payment": "u128",
  752. "new_reward_account": "Option<GenericAccountId>"
  753. },
  754. "Video": {
  755. "in_channel": "ChannelId",
  756. "in_series": "Option<SeriesId>",
  757. "is_censored": "bool"
  758. },
  759. "VideoId": "u64",
  760. "VideoCategoryId": "u64",
  761. "VideoCategory": {},
  762. "VideoCategoryCreationParameters": {
  763. "meta": "Bytes"
  764. },
  765. "VideoCategoryUpdateParameters": {
  766. "new_meta": "Bytes"
  767. },
  768. "VideoCreationParameters": {
  769. "assets": "Vec<NewAsset>",
  770. "meta": "Bytes"
  771. },
  772. "VideoUpdateParameters": {
  773. "assets": "Option<Vec<NewAsset>>",
  774. "new_meta": "Option<Bytes>"
  775. },
  776. "Person": {
  777. "controlled_by": "PersonController"
  778. },
  779. "PersonId": "u64",
  780. "PersonController": {
  781. "_enum": {
  782. "Member": "MemberId",
  783. "Curators": "Null"
  784. }
  785. },
  786. "PersonActor": {
  787. "_enum": {
  788. "Member": "MemberId",
  789. "Curator": "CuratorId"
  790. }
  791. },
  792. "PersonCreationParameters": {
  793. "assets": "Vec<NewAsset>",
  794. "meta": "Bytes"
  795. },
  796. "PersonUpdateParameters": {
  797. "assets": "Option<Vec<NewAsset>>",
  798. "meta": "Option<Bytes>"
  799. },
  800. "Playlist": {
  801. "in_channel": "ChannelId"
  802. },
  803. "PlaylistId": "u64",
  804. "PlaylistCreationParameters": {
  805. "meta": "Bytes"
  806. },
  807. "PlaylistUpdateParameters": {
  808. "new_meta": "Bytes"
  809. },
  810. "SeriesId": "u64",
  811. "Series": {
  812. "in_channel": "ChannelId",
  813. "seasons": "Vec<Season>"
  814. },
  815. "Season": {
  816. "episodes": "Vec<VideoId>"
  817. },
  818. "SeriesParameters": {
  819. "assets": "Option<Vec<NewAsset>>",
  820. "seasons": "Option<Vec<Option<SeasonParameters>>>",
  821. "meta": "Option<Bytes>"
  822. },
  823. "SeasonParameters": {
  824. "assets": "Option<Vec<NewAsset>>",
  825. "episodes": "Option<Vec<Option<EpisodeParemters>>>",
  826. "meta": "Option<Bytes>"
  827. },
  828. "EpisodeParemters": {
  829. "_enum": {
  830. "NewVideo": "VideoCreationParameters",
  831. "ExistingVideo": "VideoId"
  832. }
  833. },
  834. "MaxNumber": "u32"
  835. }