defs.json 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880
  1. {
  2. "ActorId": "u64",
  3. "MemberId": "u64",
  4. "BlockAndTime": {
  5. "block": "u32",
  6. "time": "u64"
  7. },
  8. "ThreadId": "u64",
  9. "PostId": "u64",
  10. "InputValidationLengthConstraint": {
  11. "min": "u16",
  12. "max_min_diff": "u16"
  13. },
  14. "WorkingGroup": {
  15. "_enum": [
  16. "Forum",
  17. "Storage",
  18. "Content",
  19. "Membership",
  20. "OperationsAlpha",
  21. "Gateway",
  22. "Distribution",
  23. "OperationsBeta",
  24. "OperationsGamma"
  25. ]
  26. },
  27. "MemoText": "Text",
  28. "BalanceKind": {
  29. "_enum": [
  30. "Positive",
  31. "Negative"
  32. ]
  33. },
  34. "Address": "AccountId",
  35. "LookupSource": "AccountId",
  36. "ChannelId": "u64",
  37. "Url": "Text",
  38. "Membership": {
  39. "handle_hash": "Bytes",
  40. "root_account": "AccountId",
  41. "controller_account": "AccountId",
  42. "verified": "bool",
  43. "invites": "u32"
  44. },
  45. "StakingAccountMemberBinding": {
  46. "member_id": "MemberId",
  47. "confirmed": "bool"
  48. },
  49. "BuyMembershipParameters": {
  50. "root_account": "AccountId",
  51. "controller_account": "AccountId",
  52. "handle": "Option<Text>",
  53. "metadata": "Bytes",
  54. "referrer_id": "Option<MemberId>"
  55. },
  56. "InviteMembershipParameters": {
  57. "inviting_member_id": "MemberId",
  58. "root_account": "AccountId",
  59. "controller_account": "AccountId",
  60. "handle": "Option<Text>",
  61. "metadata": "Bytes"
  62. },
  63. "CouncilStageAnnouncing": {
  64. "candidatesCount": "u64"
  65. },
  66. "CouncilStageElection": {
  67. "candidatesCount": "u64"
  68. },
  69. "CouncilStageUpdate": {
  70. "stage": "CouncilStage",
  71. "changed_at": "u32"
  72. },
  73. "CouncilStage": {
  74. "_enum": {
  75. "Announcing": "CouncilStageAnnouncing",
  76. "Election": "CouncilStageElection",
  77. "Idle": "Null"
  78. }
  79. },
  80. "Candidate": {
  81. "staking_account_id": "AccountId",
  82. "reward_account_id": "AccountId",
  83. "cycle_id": "u64",
  84. "stake": "u32",
  85. "vote_power": "VotePower",
  86. "note_hash": "Option<Hash>"
  87. },
  88. "CouncilMemberOf": {
  89. "staking_account_id": "AccountId",
  90. "reward_account_id": "AccountId",
  91. "membership_id": "MemberId",
  92. "stake": "u128",
  93. "last_payment_block": "u32",
  94. "unpaid_reward": "u128"
  95. },
  96. "CastVoteOf": {
  97. "commitment": "Hash",
  98. "cycle_id": "u64",
  99. "stake": "u128",
  100. "vote_for": "Option<MemberId>"
  101. },
  102. "ForumUserId": "u64",
  103. "ModeratorId": "u64",
  104. "CategoryId": "u64",
  105. "PostReactionId": "u64",
  106. "Category": {
  107. "title_hash": "Hash",
  108. "description_hash": "Hash",
  109. "archived": "bool",
  110. "num_direct_subcategories": "u32",
  111. "num_direct_threads": "u32",
  112. "num_direct_moderators": "u32",
  113. "parent_category_id": "Option<CategoryId>",
  114. "sticky_thread_ids": "Vec<ThreadId>"
  115. },
  116. "Thread": {
  117. "category_id": "CategoryId",
  118. "author_id": "ForumUserId",
  119. "poll": "Option<Poll>",
  120. "cleanup_pay_off": "u128",
  121. "number_of_posts": "u64"
  122. },
  123. "Post": {
  124. "thread_id": "ThreadId",
  125. "text_hash": "Hash",
  126. "author_id": "ForumUserId",
  127. "cleanup_pay_off": "u128",
  128. "last_edited": "u32"
  129. },
  130. "PollAlternative": {
  131. "alternative_text_hash": "Hash",
  132. "vote_count": "u32"
  133. },
  134. "Poll": {
  135. "description_hash": "Hash",
  136. "end_time": "u64",
  137. "poll_alternatives": "Vec<PollAlternative>"
  138. },
  139. "PrivilegedActor": {
  140. "_enum": {
  141. "Lead": "Null",
  142. "Moderator": "ModeratorId"
  143. }
  144. },
  145. "PollInput": {
  146. "description": "Bytes",
  147. "end_time": "u64",
  148. "poll_alternatives": "Vec<Bytes>"
  149. },
  150. "ThreadOf": {
  151. "category_id": "CategoryId",
  152. "author_id": "ForumUserId",
  153. "poll": "Option<Poll>",
  154. "cleanup_pay_off": "u128",
  155. "number_of_posts": "u64"
  156. },
  157. "ExtendedPostId": {
  158. "category_id": "CategoryId",
  159. "thread_id": "ThreadId",
  160. "post_id": "PostId"
  161. },
  162. "ApplicationId": "u64",
  163. "Application": {
  164. "role_account_id": "AccountId",
  165. "reward_account_id": "AccountId",
  166. "staking_account_id": "AccountId",
  167. "member_id": "MemberId",
  168. "description_hash": "Bytes",
  169. "opening_id": "OpeningId"
  170. },
  171. "ApplicationInfo": {
  172. "application_id": "ApplicationId",
  173. "application": "Application"
  174. },
  175. "ApplicationIdSet": "BTreeSet<ApplicationId>",
  176. "ApplicationIdToWorkerIdMap": "BTreeMap<ApplicationId,WorkerId>",
  177. "WorkerId": "u64",
  178. "Worker": {
  179. "member_id": "MemberId",
  180. "role_account_id": "AccountId",
  181. "staking_account_id": "AccountId",
  182. "reward_account_id": "AccountId",
  183. "started_leaving_at": "Option<u32>",
  184. "job_unstaking_period": "u32",
  185. "reward_per_block": "Option<u128>",
  186. "missed_reward": "Option<u128>",
  187. "created_at": "u32"
  188. },
  189. "WorkerInfo": {
  190. "worker_id": "WorkerId",
  191. "worker": "Worker"
  192. },
  193. "Opening": {
  194. "opening_type": "OpeningType",
  195. "created": "u32",
  196. "description_hash": "Bytes",
  197. "stake_policy": "StakePolicy",
  198. "reward_per_block": "Option<u128>",
  199. "creation_stake": "u128"
  200. },
  201. "OpeningId": "u64",
  202. "StakePolicy": {
  203. "stake_amount": "u128",
  204. "leaving_unstaking_period": "u32"
  205. },
  206. "StakeParameters": {
  207. "stake": "u128",
  208. "staking_account_id": "AccountId"
  209. },
  210. "StorageProviderId": "u64",
  211. "OpeningType": {
  212. "_enum": {
  213. "Leader": "Null",
  214. "Regular": "Null"
  215. }
  216. },
  217. "ApplyOnOpeningParameters": {
  218. "member_id": "MemberId",
  219. "opening_id": "OpeningId",
  220. "role_account_id": "AccountId",
  221. "reward_account_id": "AccountId",
  222. "description": "Bytes",
  223. "stake_parameters": "StakeParameters"
  224. },
  225. "Penalty": {
  226. "slashing_text": "Text",
  227. "slashing_amount": "u128"
  228. },
  229. "RewardPaymentType": {
  230. "_enum": [
  231. "MissedReward",
  232. "RegularReward"
  233. ]
  234. },
  235. "StorageBucketId": "u64",
  236. "StorageBucketsPerBagValueConstraint": {
  237. "min": "u64",
  238. "max_min_diff": "u64"
  239. },
  240. "DataObjectId": "u64",
  241. "DynamicBagId": {
  242. "_enum": {
  243. "Member": "MemberId",
  244. "Channel": "u64"
  245. }
  246. },
  247. "Voucher": {
  248. "sizeLimit": "u64",
  249. "objectsLimit": "u64",
  250. "sizeUsed": "u64",
  251. "objectsUsed": "u64"
  252. },
  253. "DynamicBagType": {
  254. "_enum": [
  255. "Member",
  256. "Channel"
  257. ]
  258. },
  259. "DynamicBagCreationPolicy": {
  260. "numberOfStorageBuckets": "u64",
  261. "families": "BTreeMap<DistributionBucketFamilyId,u32>"
  262. },
  263. "DynamicBagDeletionPrize": {
  264. "account_id": "GenericAccountId",
  265. "prize": "u128"
  266. },
  267. "DynamicBagDeletionPrizeRecord": {
  268. "account_id": "GenericAccountId",
  269. "prize": "u128"
  270. },
  271. "Bag": {
  272. "stored_by": "BTreeSet<StorageBucketId>",
  273. "distributed_by": "BTreeSet<DistributionBucketId>",
  274. "deletion_prize": "Option<u128>",
  275. "objects_total_size": "u64",
  276. "objects_number": "u64"
  277. },
  278. "StorageBucket": {
  279. "operator_status": "StorageBucketOperatorStatus",
  280. "accepting_new_bags": "bool",
  281. "voucher": "Voucher",
  282. "assigned_bags": "u64"
  283. },
  284. "StaticBagId": {
  285. "_enum": {
  286. "Council": "Null",
  287. "WorkingGroup": "WorkingGroup"
  288. }
  289. },
  290. "Static": {
  291. "_enum": {
  292. "Council": "Null",
  293. "WorkingGroup": "WorkingGroup"
  294. }
  295. },
  296. "Dynamic": {
  297. "_enum": {
  298. "Member": "MemberId",
  299. "Channel": "u64"
  300. }
  301. },
  302. "BagId": {
  303. "_enum": {
  304. "Static": "Static",
  305. "Dynamic": "Dynamic"
  306. }
  307. },
  308. "DataObjectCreationParameters": {
  309. "size": "u64",
  310. "ipfsContentId": "Bytes"
  311. },
  312. "BagIdType": {
  313. "_enum": {
  314. "Static": "Static",
  315. "Dynamic": "Dynamic"
  316. }
  317. },
  318. "UploadParameters": {
  319. "bagId": "BagId",
  320. "objectCreationList": "Vec<DataObjectCreationParameters>",
  321. "deletionPrizeSourceAccountId": "GenericAccountId",
  322. "expectedDataSizeFee": "u128"
  323. },
  324. "StorageBucketIdSet": "BTreeSet<StorageBucketId>",
  325. "DataObjectIdSet": "BTreeSet<DataObjectId>",
  326. "ContentIdSet": "BTreeSet<Cid>",
  327. "Cid": "Bytes",
  328. "StorageBucketOperatorStatus": {
  329. "_enum": {
  330. "Missing": "Null",
  331. "InvitedStorageWorker": "WorkerId",
  332. "StorageWorker": "(WorkerId,GenericAccountId)"
  333. }
  334. },
  335. "DataObject": {
  336. "accepted": "bool",
  337. "deletion_prize": "u128",
  338. "size": "u64",
  339. "ipfsContentId": "Bytes"
  340. },
  341. "DistributionBucketId": {
  342. "distribution_bucket_family_id": "DistributionBucketFamilyId",
  343. "distribution_bucket_index": "DistributionBucketIndex"
  344. },
  345. "DistributionBucketIndex": "u64",
  346. "DistributionBucketFamilyId": "u64",
  347. "DistributionBucket": {
  348. "accepting_new_bags": "bool",
  349. "distributing": "bool",
  350. "pending_invitations": "BTreeSet<WorkerId>",
  351. "operators": "BTreeSet<WorkerId>",
  352. "assigned_bags": "u64"
  353. },
  354. "DistributionBucketFamily": {
  355. "next_distribution_bucket_index": "DistributionBucketIndex"
  356. },
  357. "DataObjectIdMap": "BTreeMap<DataObjectId,DataObject>",
  358. "DistributionBucketIndexSet": "BTreeSet<DistributionBucketIndex>",
  359. "DynamicBagCreationPolicyDistributorFamiliesMap": "BTreeMap<DistributionBucketFamilyId,u32>",
  360. "ParticipantId": "u64",
  361. "Title": "Text",
  362. "UpdatedTitle": "Option<Text>",
  363. "UpdatedBody": "Option<Text>",
  364. "ReplyId": "u64",
  365. "Reply": {
  366. "text_hash": "Hash",
  367. "owner": "ParticipantId",
  368. "parent_id": "PostId"
  369. },
  370. "ReplyToDelete": {
  371. "post_id": "PostId",
  372. "reply_id": "ReplyId",
  373. "hide": "bool"
  374. },
  375. "ProposalId": "u32",
  376. "ProposalStatus": {
  377. "_enum": {
  378. "Active": "Null",
  379. "PendingExecution": "u32",
  380. "PendingConstitutionality": "Null"
  381. }
  382. },
  383. "ProposalOf": {
  384. "parameters": "ProposalParameters",
  385. "proposerId": "MemberId",
  386. "activatedAt": "u32",
  387. "status": "ProposalStatus",
  388. "votingResults": "VotingResults",
  389. "exactExecutionBlock": "Option<u32>",
  390. "nrOfCouncilConfirmations": "u32",
  391. "stakingAccountId": "Option<AccountId>"
  392. },
  393. "ProposalDetails": {
  394. "_enum": {
  395. "Signal": "Text",
  396. "RuntimeUpgrade": "Bytes",
  397. "FundingRequest": "Vec<FundingRequestParameters>",
  398. "SetMaxValidatorCount": "u32",
  399. "CreateWorkingGroupLeadOpening": "CreateOpeningParameters",
  400. "FillWorkingGroupLeadOpening": "FillOpeningParameters",
  401. "UpdateWorkingGroupBudget": "(Balance,WorkingGroup,BalanceKind)",
  402. "DecreaseWorkingGroupLeadStake": "(WorkerId,Balance,WorkingGroup)",
  403. "SlashWorkingGroupLead": "(WorkerId,Balance,WorkingGroup)",
  404. "SetWorkingGroupLeadReward": "(WorkerId,Option<Balance>,WorkingGroup)",
  405. "TerminateWorkingGroupLead": "TerminateRoleParameters",
  406. "AmendConstitution": "Text",
  407. "CancelWorkingGroupLeadOpening": "(OpeningId,WorkingGroup)",
  408. "SetMembershipPrice": "u128",
  409. "SetCouncilBudgetIncrement": "u128",
  410. "SetCouncilorReward": "u128",
  411. "SetInitialInvitationBalance": "u128",
  412. "SetInitialInvitationCount": "u32",
  413. "SetMembershipLeadInvitationQuota": "u32",
  414. "SetReferralCut": "u8",
  415. "CreateBlogPost": "(Text,Text)",
  416. "EditBlogPost": "(PostId,Option<Text>,Option<Text>)",
  417. "LockBlogPost": "PostId",
  418. "UnlockBlogPost": "PostId",
  419. "VetoProposal": "ProposalId"
  420. }
  421. },
  422. "ProposalDetailsOf": {
  423. "_enum": {
  424. "Signal": "Text",
  425. "RuntimeUpgrade": "Bytes",
  426. "FundingRequest": "Vec<FundingRequestParameters>",
  427. "SetMaxValidatorCount": "u32",
  428. "CreateWorkingGroupLeadOpening": "CreateOpeningParameters",
  429. "FillWorkingGroupLeadOpening": "FillOpeningParameters",
  430. "UpdateWorkingGroupBudget": "(Balance,WorkingGroup,BalanceKind)",
  431. "DecreaseWorkingGroupLeadStake": "(WorkerId,Balance,WorkingGroup)",
  432. "SlashWorkingGroupLead": "(WorkerId,Balance,WorkingGroup)",
  433. "SetWorkingGroupLeadReward": "(WorkerId,Option<Balance>,WorkingGroup)",
  434. "TerminateWorkingGroupLead": "TerminateRoleParameters",
  435. "AmendConstitution": "Text",
  436. "CancelWorkingGroupLeadOpening": "(OpeningId,WorkingGroup)",
  437. "SetMembershipPrice": "u128",
  438. "SetCouncilBudgetIncrement": "u128",
  439. "SetCouncilorReward": "u128",
  440. "SetInitialInvitationBalance": "u128",
  441. "SetInitialInvitationCount": "u32",
  442. "SetMembershipLeadInvitationQuota": "u32",
  443. "SetReferralCut": "u8",
  444. "CreateBlogPost": "(Text,Text)",
  445. "EditBlogPost": "(PostId,Option<Text>,Option<Text>)",
  446. "LockBlogPost": "PostId",
  447. "UnlockBlogPost": "PostId",
  448. "VetoProposal": "ProposalId"
  449. }
  450. },
  451. "VotingResults": {
  452. "abstensions": "u32",
  453. "approvals": "u32",
  454. "rejections": "u32",
  455. "slashes": "u32"
  456. },
  457. "ProposalParameters": {
  458. "votingPeriod": "u32",
  459. "gracePeriod": "u32",
  460. "approvalQuorumPercentage": "u32",
  461. "approvalThresholdPercentage": "u32",
  462. "slashingQuorumPercentage": "u32",
  463. "slashingThresholdPercentage": "u32",
  464. "requiredStake": "Option<u128>",
  465. "constitutionality": "u32"
  466. },
  467. "GeneralProposalParameters": {
  468. "member_id": "MemberId",
  469. "title": "Text",
  470. "description": "Text",
  471. "staking_account_id": "Option<AccountId>",
  472. "exact_execution_block": "Option<u32>"
  473. },
  474. "VoteKind": {
  475. "_enum": [
  476. "Approve",
  477. "Reject",
  478. "Slash",
  479. "Abstain"
  480. ]
  481. },
  482. "DiscussionThread": {
  483. "activated_at": "u32",
  484. "author_id": "u64",
  485. "mode": "ThreadMode"
  486. },
  487. "DiscussionPost": {
  488. "author_id": "u64"
  489. },
  490. "CreateOpeningParameters": {
  491. "description": "Bytes",
  492. "stake_policy": "StakePolicy",
  493. "reward_per_block": "Option<u128>",
  494. "working_group": "WorkingGroup"
  495. },
  496. "FillOpeningParameters": {
  497. "opening_id": "OpeningId",
  498. "successful_application_id": "ApplicationId",
  499. "working_group": "WorkingGroup"
  500. },
  501. "TerminateRoleParameters": {
  502. "worker_id": "WorkerId",
  503. "slashing_amount": "Option<u128>",
  504. "working_group": "WorkingGroup"
  505. },
  506. "ProposalDecision": {
  507. "_enum": {
  508. "Canceled": "Null",
  509. "CanceledByRuntime": "Null",
  510. "Vetoed": "Null",
  511. "Rejected": "Null",
  512. "Slashed": "Null",
  513. "Expired": "Null",
  514. "Approved": "Approved"
  515. }
  516. },
  517. "ExecutionFailed": {
  518. "error": "Text"
  519. },
  520. "Approved": {
  521. "_enum": [
  522. "PendingExecution",
  523. "PendingConstitutionality"
  524. ]
  525. },
  526. "SetLeadParams": "(MemberId,AccountId)",
  527. "ThreadMode": {
  528. "_enum": {
  529. "Open": "Null",
  530. "Closed": "Vec<MemberId>"
  531. }
  532. },
  533. "ExecutionStatus": {
  534. "_enum": {
  535. "Executed": "Null",
  536. "ExecutionFailed": "ExecutionFailed"
  537. }
  538. },
  539. "FundingRequestParameters": {
  540. "account": "AccountId",
  541. "amount": "u128"
  542. },
  543. "ReferendumStageVoting": {
  544. "started": "u32",
  545. "winning_target_count": "u64",
  546. "current_cycle_id": "u64"
  547. },
  548. "ReferendumStageRevealing": {
  549. "started": "u32",
  550. "winning_target_count": "u64",
  551. "intermediate_winners": "Vec<OptionResult>",
  552. "current_cycle_id": "u64"
  553. },
  554. "ReferendumStage": {
  555. "_enum": {
  556. "Inactive": "Null",
  557. "Voting": "ReferendumStageVoting",
  558. "Revealing": "ReferendumStageRevealing"
  559. }
  560. },
  561. "OptionResult": {
  562. "option_id": "MemberId",
  563. "vote_power": "VotePower"
  564. },
  565. "VotePower": "u128",
  566. "ConstitutionInfo": {
  567. "text_hash": "Hash"
  568. },
  569. "BountyId": "u32",
  570. "EntryId": "u32",
  571. "BountyActor": {
  572. "_enum": {
  573. "Council": "Null",
  574. "Member": "MemberId"
  575. }
  576. },
  577. "AssuranceContractType": {
  578. "_enum": {
  579. "Open": "Null",
  580. "Closed": "Vec<MemberId>"
  581. }
  582. },
  583. "FundingType_Limited": {
  584. "min_funding_amount": "u128",
  585. "max_funding_amount": "u128",
  586. "funding_period": "u32"
  587. },
  588. "FundingType_Perpetual": {
  589. "target": "u128"
  590. },
  591. "FundingType": {
  592. "_enum": {
  593. "Perpetual": "FundingType_Perpetual",
  594. "Limited": "FundingType_Limited"
  595. }
  596. },
  597. "BountyCreationParameters": {
  598. "oracle": "BountyActor",
  599. "contract_type": "AssuranceContractType",
  600. "creator": "BountyActor",
  601. "cherry": "u128",
  602. "entrant_stake": "u128",
  603. "funding_type": "FundingType",
  604. "work_period": "u32",
  605. "judging_period": "u32"
  606. },
  607. "OracleWorkEntryJudgment_Winner": {
  608. "reward": "u128"
  609. },
  610. "OracleWorkEntryJudgment": {
  611. "_enum": {
  612. "Winner": "OracleWorkEntryJudgment_Winner",
  613. "Rejected": "Null"
  614. }
  615. },
  616. "OracleJudgment": "BTreeMap<EntryId,OracleWorkEntryJudgment>",
  617. "Entry": {
  618. "member_id": "MemberId",
  619. "staking_account_id": "AccountId",
  620. "submitted_at": "u32",
  621. "work_submitted": "bool",
  622. "oracle_judgment_result": "Option<OracleJudgment>"
  623. },
  624. "CuratorId": "u64",
  625. "CuratorGroupId": "u64",
  626. "CuratorGroup": {
  627. "curators": "BTreeSet<CuratorId>",
  628. "active": "bool"
  629. },
  630. "ContentActor": {
  631. "_enum": {
  632. "Curator": "(CuratorGroupId,CuratorId)",
  633. "Member": "MemberId",
  634. "Lead": "Null"
  635. }
  636. },
  637. "StorageAssets": {
  638. "object_creation_list": "Vec<DataObjectCreationParameters>",
  639. "expected_data_size_fee": "u128"
  640. },
  641. "Channel": {
  642. "owner": "ChannelOwner",
  643. "num_videos": "u64",
  644. "is_censored": "bool",
  645. "reward_account": "Option<GenericAccountId>",
  646. "collaborators": "BTreeSet<MemberId>",
  647. "moderators": "BTreeSet<MemberId>",
  648. "cumulative_payout_earned": "u128"
  649. },
  650. "ChannelOwner": {
  651. "_enum": {
  652. "Member": "MemberId",
  653. "Curators": "CuratorGroupId"
  654. }
  655. },
  656. "ChannelCategoryId": "u64",
  657. "ChannelCategory": {},
  658. "ChannelCategoryCreationParameters": {
  659. "meta": "Bytes"
  660. },
  661. "ChannelCategoryUpdateParameters": {
  662. "new_meta": "Bytes"
  663. },
  664. "ChannelCreationParameters": {
  665. "assets": "Option<StorageAssets>",
  666. "meta": "Option<Bytes>",
  667. "reward_account": "Option<GenericAccountId>",
  668. "collaborators": "BTreeSet<MemberId>",
  669. "moderators": "BTreeSet<MemberId>"
  670. },
  671. "ChannelUpdateParameters": {
  672. "assets_to_upload": "Option<StorageAssets>",
  673. "new_meta": "Option<Bytes>",
  674. "reward_account": "Option<Option<GenericAccountId>>",
  675. "assets_to_remove": "BTreeSet<DataObjectId>",
  676. "collaborators": "Option<BTreeSet<MemberId>>"
  677. },
  678. "ChannelOwnershipTransferRequestId": "u64",
  679. "ChannelOwnershipTransferRequest": {
  680. "channel_id": "ChannelId",
  681. "new_owner": "ChannelOwner",
  682. "payment": "u128",
  683. "new_reward_account": "Option<GenericAccountId>"
  684. },
  685. "Video": {
  686. "in_channel": "ChannelId",
  687. "in_series": "Option<SeriesId>",
  688. "is_censored": "bool",
  689. "enable_comments": "bool",
  690. "video_post_id": "Option<VideoPostId>",
  691. "nft_status": "Option<OwnedNFT>"
  692. },
  693. "VideoId": "u64",
  694. "VideoCategoryId": "u64",
  695. "VideoCategory": {},
  696. "VideoCategoryCreationParameters": {
  697. "meta": "Bytes"
  698. },
  699. "VideoCategoryUpdateParameters": {
  700. "new_meta": "Bytes"
  701. },
  702. "VideoCreationParameters": {
  703. "assets": "Option<StorageAssets>",
  704. "meta": "Option<Bytes>",
  705. "enable_comments": "bool"
  706. },
  707. "VideoUpdateParameters": {
  708. "assets_to_upload": "Option<StorageAssets>",
  709. "new_meta": "Option<Bytes>",
  710. "assets_to_remove": "BTreeSet<DataObjectId>",
  711. "enable_comments": "Option<bool>"
  712. },
  713. "Person": {
  714. "controlled_by": "PersonController"
  715. },
  716. "PersonId": "u64",
  717. "PersonController": {
  718. "_enum": {
  719. "Member": "MemberId",
  720. "Curators": "Null"
  721. }
  722. },
  723. "PersonActor": {
  724. "_enum": {
  725. "Member": "MemberId",
  726. "Curator": "CuratorId"
  727. }
  728. },
  729. "PersonCreationParameters": {
  730. "assets": "StorageAssets",
  731. "meta": "Bytes"
  732. },
  733. "PersonUpdateParameters": {
  734. "assets": "Option<StorageAssets>",
  735. "meta": "Option<Bytes>"
  736. },
  737. "Playlist": {
  738. "in_channel": "ChannelId"
  739. },
  740. "PlaylistId": "u64",
  741. "PlaylistCreationParameters": {
  742. "meta": "Bytes"
  743. },
  744. "PlaylistUpdateParameters": {
  745. "new_meta": "Bytes"
  746. },
  747. "SeriesId": "u64",
  748. "Series": {
  749. "in_channel": "ChannelId",
  750. "seasons": "Vec<Season>"
  751. },
  752. "Season": {
  753. "episodes": "Vec<VideoId>"
  754. },
  755. "SeriesParameters": {
  756. "assets": "Option<StorageAssets>",
  757. "seasons": "Option<Vec<Option<SeasonParameters>>>",
  758. "meta": "Option<Bytes>"
  759. },
  760. "SeasonParameters": {
  761. "assets": "Option<StorageAssets>",
  762. "episodes": "Option<Vec<Option<EpisodeParemters>>>",
  763. "meta": "Option<Bytes>"
  764. },
  765. "EpisodeParemters": {
  766. "_enum": {
  767. "NewVideo": "VideoCreationParameters",
  768. "ExistingVideo": "VideoId"
  769. }
  770. },
  771. "MaxNumber": "u32",
  772. "IsCensored": "bool",
  773. "VideoMigrationConfig": {
  774. "current_id": "VideoId",
  775. "final_id": "VideoId"
  776. },
  777. "ChannelMigrationConfig": {
  778. "current_id": "ChannelId",
  779. "final_id": "ChannelId"
  780. },
  781. "VideoPostId": "u64",
  782. "ReactionId": "u64",
  783. "VideoPostType": {
  784. "_enum": {
  785. "Description": "Null",
  786. "Comment": "VideoPostId"
  787. }
  788. },
  789. "VideoPost": {
  790. "author": "ContentActor",
  791. "bloat_bond": "u128",
  792. "replies_count": "VideoPostId",
  793. "post_type": "VideoPostType",
  794. "video_reference": "VideoId"
  795. },
  796. "Side": {
  797. "_enum": [
  798. "Left",
  799. "Right"
  800. ]
  801. },
  802. "ProofElement": {
  803. "hash": "Hash",
  804. "side": "Side"
  805. },
  806. "VideoPostCreationParameters": {
  807. "post_type": "VideoPostType",
  808. "video_reference": "VideoId"
  809. },
  810. "VideoPostDeletionParameters": {
  811. "witness": "Option<Hash>",
  812. "rationale": "Option<Bytes>"
  813. },
  814. "PullPayment": {
  815. "channel_id": "ChannelId",
  816. "cumulative_payout_claimed": "u128",
  817. "reason": "Hash"
  818. },
  819. "ModeratorSet": "BTreeSet<MemberId>",
  820. "Royalty": "u64",
  821. "IsExtended": "bool",
  822. "EnglishAuctionDetails": {
  823. "extension_period": "u32",
  824. "auction_duration": "u32"
  825. },
  826. "OpenAuctionDetails": {
  827. "bid_lock_duration": "u32"
  828. },
  829. "AuctionType": {
  830. "_enum": {
  831. "English": "EnglishAuctionDetails",
  832. "Open": "OpenAuctionDetails"
  833. }
  834. },
  835. "Bid": {
  836. "bidder": "MemberId",
  837. "bidder_account_id": "GenericAccountId",
  838. "amount": "u128",
  839. "made_at_block": "u32"
  840. },
  841. "Auction": {
  842. "starting_price": "u128",
  843. "buy_now_price": "Option<u128>",
  844. "auction_type": "AuctionType",
  845. "minimal_bid_step": "u128",
  846. "last_bid": "Option<Bid>",
  847. "starts_at": "u32",
  848. "whitelist": "BTreeSet<MemberId>"
  849. },
  850. "TransactionalStatus": {
  851. "_enum": {
  852. "Idle": "Null",
  853. "InitiatedOfferToMember": "(MemberId,Option<u128>)",
  854. "Auction": "Auction",
  855. "BuyNow": "u128"
  856. }
  857. },
  858. "NFTOwner": {
  859. "_enum": {
  860. "ChannelOwner": "Null",
  861. "Member": "MemberId"
  862. }
  863. },
  864. "OwnedNFT": {
  865. "owner": "NFTOwner",
  866. "transactional_status": "TransactionalStatus",
  867. "creator_royalty": "Option<Royalty>"
  868. },
  869. "AuctionParams": {
  870. "auction_type": "AuctionType",
  871. "starting_price": "u128",
  872. "minimal_bid_step": "u128",
  873. "buy_now_price": "Option<u128>",
  874. "starts_at": "Option<u32>",
  875. "whitelist": "BTreeSet<MemberId>"
  876. },
  877. "CurrencyOf": "u128",
  878. "CurrencyAmount": "u128",
  879. "AccountInfo": "AccountInfoWithRefCount"
  880. }