defs.json 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893
  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. "StorageBucketId": "u64",
  485. "StorageBucketsPerBagValueConstraint": {
  486. "min": "u64",
  487. "max_min_diff": "u64"
  488. },
  489. "DataObjectId": "u64",
  490. "DynamicBagId": {
  491. "_enum": {
  492. "Member": "MemberId",
  493. "Channel": "u64"
  494. }
  495. },
  496. "Voucher": {
  497. "sizeLimit": "u64",
  498. "objectsLimit": "u64",
  499. "sizeUsed": "u64",
  500. "objectsUsed": "u64"
  501. },
  502. "DynamicBagType": {
  503. "_enum": [
  504. "Member",
  505. "Channel"
  506. ]
  507. },
  508. "DynamicBagCreationPolicy": {
  509. "numberOfStorageBuckets": "u64",
  510. "families": "BTreeMap<DistributionBucketFamilyId,u32>"
  511. },
  512. "DynamicBagDeletionPrize": {
  513. "account_id": "GenericAccountId",
  514. "prize": "u128"
  515. },
  516. "DynamicBagDeletionPrizeRecord": {
  517. "account_id": "GenericAccountId",
  518. "prize": "u128"
  519. },
  520. "Bag": {
  521. "objects": "BTreeMap<DataObjectId,DataObject>",
  522. "stored_by": "StorageBucketIdSet",
  523. "distributed_by": "DistributionBucketIdSet",
  524. "deletion_prize": "Option<u128>"
  525. },
  526. "StorageBucket": {
  527. "operator_status": "StorageBucketOperatorStatus",
  528. "accepting_new_bags": "bool",
  529. "voucher": "Voucher",
  530. "metadata": "Bytes"
  531. },
  532. "StaticBagId": {
  533. "_enum": {
  534. "Council": "Null",
  535. "WorkingGroup": "WorkingGroup"
  536. }
  537. },
  538. "Static": {
  539. "_enum": {
  540. "Council": "Null",
  541. "WorkingGroup": "WorkingGroup"
  542. }
  543. },
  544. "Dynamic": {
  545. "_enum": {
  546. "Member": "MemberId",
  547. "Channel": "u64"
  548. }
  549. },
  550. "BagId": {
  551. "_enum": {
  552. "Static": "Static",
  553. "Dynamic": "Dynamic"
  554. }
  555. },
  556. "DataObjectCreationParameters": {
  557. "size": "u64",
  558. "ipfsContentId": "Bytes"
  559. },
  560. "BagIdType": {
  561. "_enum": {
  562. "Static": "Static",
  563. "Dynamic": "Dynamic"
  564. }
  565. },
  566. "UploadParameters": {
  567. "authenticationKey": "Bytes",
  568. "bagId": "BagId",
  569. "objectCreationList": "Vec<DataObjectCreationParameters>",
  570. "deletionPrizeSourceAccountId": "GenericAccountId",
  571. "expectedDataSizeFee": "u128"
  572. },
  573. "StorageBucketIdSet": "BTreeSet<StorageBucketId>",
  574. "DataObjectIdSet": "BTreeSet<DataObjectId>",
  575. "ContentIdSet": "BTreeSet<Cid>",
  576. "Cid": "Bytes",
  577. "StorageBucketOperatorStatus": {
  578. "_enum": {
  579. "Missing": "Null",
  580. "InvitedStorageWorker": "WorkerId",
  581. "StorageWorker": "WorkerId"
  582. }
  583. },
  584. "DataObject": {
  585. "accepted": "bool",
  586. "deletion_prize": "u128",
  587. "size": "u64"
  588. },
  589. "DistributionBucketId": "u64",
  590. "DistributionBucketFamilyId": "u64",
  591. "DistributionBucket": {
  592. "accepting_new_bags": "bool",
  593. "distributing": "bool",
  594. "pending_invitations": "Vec<WorkerId>",
  595. "operators": "Vec<WorkerId>",
  596. "assigned_bags": "u64"
  597. },
  598. "DistributionBucketFamily": {
  599. "distribution_buckets": "BTreeMap<DistributionBucketId,DistributionBucket>"
  600. },
  601. "DataObjectIdMap": "BTreeMap<DataObjectId,DataObject>",
  602. "DistributionBucketIdSet": "BTreeSet<DistributionBucketId>",
  603. "DynamicBagCreationPolicyDistributorFamiliesMap": "BTreeMap<DistributionBucketFamilyId,u32>",
  604. "ProposalId": "u32",
  605. "ProposalStatus": {
  606. "_enum": {
  607. "Active": "Option<ActiveStake>",
  608. "Finalized": "Finalized"
  609. }
  610. },
  611. "ProposalOf": {
  612. "parameters": "ProposalParameters",
  613. "proposerId": "MemberId",
  614. "title": "Text",
  615. "description": "Text",
  616. "createdAt": "u32",
  617. "status": "ProposalStatus",
  618. "votingResults": "VotingResults"
  619. },
  620. "ProposalDetails": {
  621. "_enum": {
  622. "Text": "Text",
  623. "RuntimeUpgrade": "Bytes",
  624. "SetElectionParameters": "ElectionParameters",
  625. "Spending": "(Balance,AccountId)",
  626. "SetLead": "Option<SetLeadParams>",
  627. "SetContentWorkingGroupMintCapacity": "u128",
  628. "EvictStorageProvider": "GenericAccountId",
  629. "SetValidatorCount": "u32",
  630. "SetStorageRoleParameters": "RoleParameters",
  631. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  632. "BeginReviewWorkingGroupLeaderApplication": "(OpeningId,WorkingGroup)",
  633. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  634. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  635. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  636. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  637. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  638. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  639. }
  640. },
  641. "ProposalDetailsOf": {
  642. "_enum": {
  643. "Text": "Text",
  644. "RuntimeUpgrade": "Bytes",
  645. "SetElectionParameters": "ElectionParameters",
  646. "Spending": "(Balance,AccountId)",
  647. "SetLead": "Option<SetLeadParams>",
  648. "SetContentWorkingGroupMintCapacity": "u128",
  649. "EvictStorageProvider": "GenericAccountId",
  650. "SetValidatorCount": "u32",
  651. "SetStorageRoleParameters": "RoleParameters",
  652. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  653. "BeginReviewWorkingGroupLeaderApplication": "(OpeningId,WorkingGroup)",
  654. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  655. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  656. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  657. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  658. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  659. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  660. }
  661. },
  662. "VotingResults": {
  663. "abstensions": "u32",
  664. "approvals": "u32",
  665. "rejections": "u32",
  666. "slashes": "u32"
  667. },
  668. "ProposalParameters": {
  669. "votingPeriod": "u32",
  670. "gracePeriod": "u32",
  671. "approvalQuorumPercentage": "u32",
  672. "approvalThresholdPercentage": "u32",
  673. "slashingQuorumPercentage": "u32",
  674. "slashingThresholdPercentage": "u32",
  675. "requiredStake": "Option<u128>"
  676. },
  677. "VoteKind": {
  678. "_enum": [
  679. "Approve",
  680. "Reject",
  681. "Slash",
  682. "Abstain"
  683. ]
  684. },
  685. "ThreadCounter": {
  686. "author_id": "MemberId",
  687. "counter": "u32"
  688. },
  689. "DiscussionThread": {
  690. "title": "Bytes",
  691. "created_at": "u32",
  692. "author_id": "MemberId"
  693. },
  694. "DiscussionPost": {
  695. "text": "Bytes",
  696. "created_at": "u32",
  697. "updated_at": "u32",
  698. "author_id": "MemberId",
  699. "thread_id": "ThreadId",
  700. "edition_number": "u32"
  701. },
  702. "AddOpeningParameters": {
  703. "activate_at": "ActivateOpeningAt",
  704. "commitment": "OpeningPolicyCommitment",
  705. "human_readable_text": "Bytes",
  706. "working_group": "WorkingGroup"
  707. },
  708. "FillOpeningParameters": {
  709. "opening_id": "OpeningId",
  710. "successful_application_id": "ApplicationId",
  711. "reward_policy": "Option<RewardPolicy>",
  712. "working_group": "WorkingGroup"
  713. },
  714. "TerminateRoleParameters": {
  715. "worker_id": "WorkerId",
  716. "rationale": "Bytes",
  717. "slash": "bool",
  718. "working_group": "WorkingGroup"
  719. },
  720. "ActiveStake": {
  721. "stake_id": "StakeId",
  722. "source_account_id": "GenericAccountId"
  723. },
  724. "Finalized": {
  725. "proposalStatus": "ProposalDecisionStatus",
  726. "finalizedAt": "u32",
  727. "encodedUnstakingErrorDueToBrokenRuntime": "Option<Vec<u8>>",
  728. "stakeDataAfterUnstakingError": "Option<ActiveStake>"
  729. },
  730. "ProposalDecisionStatus": {
  731. "_enum": {
  732. "Canceled": "Null",
  733. "Vetoed": "Null",
  734. "Rejected": "Null",
  735. "Slashed": "Null",
  736. "Expired": "Null",
  737. "Approved": "Approved"
  738. }
  739. },
  740. "ExecutionFailed": {
  741. "error": "Text"
  742. },
  743. "Approved": {
  744. "_enum": {
  745. "PendingExecution": "Null",
  746. "Executed": "Null",
  747. "ExecutionFailed": "ExecutionFailed"
  748. }
  749. },
  750. "SetLeadParams": "(MemberId,GenericAccountId)",
  751. "CuratorId": "u64",
  752. "CuratorGroupId": "u64",
  753. "CuratorGroup": {
  754. "curators": "Vec<CuratorId>",
  755. "active": "bool"
  756. },
  757. "ContentActor": {
  758. "_enum": {
  759. "Curator": "(CuratorGroupId,CuratorId)",
  760. "Member": "MemberId",
  761. "Lead": "Null"
  762. }
  763. },
  764. "NewAsset": {
  765. "_enum": {
  766. "Upload": "u64",
  767. "Urls": "Vec<Url>"
  768. }
  769. },
  770. "Channel": {
  771. "owner": "ChannelOwner",
  772. "videos": "Vec<VideoId>",
  773. "playlists": "Vec<PlaylistId>",
  774. "series": "Vec<SeriesId>",
  775. "is_censored": "bool",
  776. "reward_account": "Option<GenericAccountId>"
  777. },
  778. "ChannelOwner": {
  779. "_enum": {
  780. "Member": "MemberId",
  781. "Curators": "CuratorGroupId",
  782. "Dao": "DAOId"
  783. }
  784. },
  785. "ChannelCategoryId": "u64",
  786. "ChannelCategory": {},
  787. "ChannelCategoryCreationParameters": {
  788. "meta": "Bytes"
  789. },
  790. "ChannelCategoryUpdateParameters": {
  791. "new_meta": "Bytes"
  792. },
  793. "ChannelCreationParameters": {
  794. "assets": "Vec<NewAsset>",
  795. "meta": "Bytes",
  796. "reward_account": "Option<GenericAccountId>"
  797. },
  798. "ChannelUpdateParameters": {
  799. "assets": "Option<Vec<NewAsset>>",
  800. "new_meta": "Option<Bytes>",
  801. "reward_account": "Option<Option<GenericAccountId>>"
  802. },
  803. "ChannelOwnershipTransferRequestId": "u64",
  804. "ChannelOwnershipTransferRequest": {
  805. "channel_id": "ChannelId",
  806. "new_owner": "ChannelOwner",
  807. "payment": "u128",
  808. "new_reward_account": "Option<GenericAccountId>"
  809. },
  810. "Video": {
  811. "in_channel": "ChannelId",
  812. "in_series": "Option<SeriesId>",
  813. "is_censored": "bool"
  814. },
  815. "VideoId": "u64",
  816. "VideoCategoryId": "u64",
  817. "VideoCategory": {},
  818. "VideoCategoryCreationParameters": {
  819. "meta": "Bytes"
  820. },
  821. "VideoCategoryUpdateParameters": {
  822. "new_meta": "Bytes"
  823. },
  824. "VideoCreationParameters": {
  825. "assets": "Vec<NewAsset>",
  826. "meta": "Bytes"
  827. },
  828. "VideoUpdateParameters": {
  829. "assets": "Option<Vec<NewAsset>>",
  830. "new_meta": "Option<Bytes>"
  831. },
  832. "Person": {
  833. "controlled_by": "PersonController"
  834. },
  835. "PersonId": "u64",
  836. "PersonController": {
  837. "_enum": {
  838. "Member": "MemberId",
  839. "Curators": "Null"
  840. }
  841. },
  842. "PersonActor": {
  843. "_enum": {
  844. "Member": "MemberId",
  845. "Curator": "CuratorId"
  846. }
  847. },
  848. "PersonCreationParameters": {
  849. "assets": "Vec<NewAsset>",
  850. "meta": "Bytes"
  851. },
  852. "PersonUpdateParameters": {
  853. "assets": "Option<Vec<NewAsset>>",
  854. "meta": "Option<Bytes>"
  855. },
  856. "Playlist": {
  857. "in_channel": "ChannelId"
  858. },
  859. "PlaylistId": "u64",
  860. "PlaylistCreationParameters": {
  861. "meta": "Bytes"
  862. },
  863. "PlaylistUpdateParameters": {
  864. "new_meta": "Bytes"
  865. },
  866. "SeriesId": "u64",
  867. "Series": {
  868. "in_channel": "ChannelId",
  869. "seasons": "Vec<Season>"
  870. },
  871. "Season": {
  872. "episodes": "Vec<VideoId>"
  873. },
  874. "SeriesParameters": {
  875. "assets": "Option<Vec<NewAsset>>",
  876. "seasons": "Option<Vec<Option<SeasonParameters>>>",
  877. "meta": "Option<Bytes>"
  878. },
  879. "SeasonParameters": {
  880. "assets": "Option<Vec<NewAsset>>",
  881. "episodes": "Option<Vec<Option<EpisodeParemters>>>",
  882. "meta": "Option<Bytes>"
  883. },
  884. "EpisodeParemters": {
  885. "_enum": {
  886. "NewVideo": "VideoCreationParameters",
  887. "ExistingVideo": "VideoId"
  888. }
  889. },
  890. "MaxNumber": "u32",
  891. "IsCensored": "bool",
  892. "ContentId": "u64"
  893. }