defs.json 26 KB

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