typedefs.json 24 KB

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