defs.json 24 KB

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