defs.json 25 KB

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