defs.json 26 KB

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