defs.json 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755
  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. ]
  21. },
  22. "MemoText": "Text",
  23. "BalanceKind": {
  24. "_enum": [
  25. "Positive",
  26. "Negative"
  27. ]
  28. },
  29. "Address": "AccountId",
  30. "LookupSource": "AccountId",
  31. "Membership": {
  32. "handle_hash": "Bytes",
  33. "root_account": "AccountId",
  34. "controller_account": "AccountId",
  35. "verified": "bool",
  36. "invites": "u32"
  37. },
  38. "StakingAccountMemberBinding": {
  39. "member_id": "MemberId",
  40. "confirmed": "bool"
  41. },
  42. "BuyMembershipParameters": {
  43. "root_account": "AccountId",
  44. "controller_account": "AccountId",
  45. "handle": "Option<Text>",
  46. "metadata": "Bytes",
  47. "referrer_id": "Option<MemberId>"
  48. },
  49. "InviteMembershipParameters": {
  50. "inviting_member_id": "MemberId",
  51. "root_account": "AccountId",
  52. "controller_account": "AccountId",
  53. "handle": "Option<Text>",
  54. "metadata": "Bytes"
  55. },
  56. "CouncilStageAnnouncing": {
  57. "candidatesCount": "u64"
  58. },
  59. "CouncilStageElection": {
  60. "candidatesCount": "u64"
  61. },
  62. "CouncilStageUpdate": {
  63. "stage": "CouncilStage",
  64. "changed_at": "u32"
  65. },
  66. "CouncilStage": {
  67. "_enum": {
  68. "Announcing": "CouncilStageAnnouncing",
  69. "Election": "CouncilStageElection",
  70. "Idle": "u32"
  71. }
  72. },
  73. "Candidate": {
  74. "staking_account_id": "AccountId",
  75. "reward_account_id": "AccountId",
  76. "cycle_id": "u64",
  77. "stake": "u32",
  78. "vote_power": "VotePower",
  79. "note_hash": "Option<Hash>"
  80. },
  81. "CouncilMemberOf": {
  82. "staking_account_id": "AccountId",
  83. "reward_account_id": "AccountId",
  84. "membership_id": "MemberId",
  85. "stake": "u128",
  86. "last_payment_block": "u32",
  87. "unpaid_reward": "u128"
  88. },
  89. "CastVoteOf": {
  90. "commitment": "Hash",
  91. "cycle_id": "u64",
  92. "stake": "u128",
  93. "vote_for": "Option<MemberId>"
  94. },
  95. "ForumUserId": "u64",
  96. "ModeratorId": "u64",
  97. "CategoryId": "u64",
  98. "PostReactionId": "u64",
  99. "Category": {
  100. "title_hash": "Hash",
  101. "description_hash": "Hash",
  102. "archived": "bool",
  103. "num_direct_subcategories": "u32",
  104. "num_direct_threads": "u32",
  105. "num_direct_moderators": "u32",
  106. "parent_category_id": "Option<CategoryId>",
  107. "sticky_thread_ids": "Vec<ThreadId>"
  108. },
  109. "Thread": {
  110. "title_hash": "Hash",
  111. "category_id": "CategoryId",
  112. "author_id": "ForumUserId",
  113. "archived": "bool",
  114. "poll": "Option<Poll>",
  115. "num_direct_posts": "u32"
  116. },
  117. "Post": {
  118. "thread_id": "ThreadId",
  119. "text_hash": "Hash",
  120. "author_id": "ForumUserId"
  121. },
  122. "PollAlternative": {
  123. "alternative_text_hash": "Hash",
  124. "vote_count": "u32"
  125. },
  126. "Poll": {
  127. "description_hash": "Hash",
  128. "end_time": "u64",
  129. "poll_alternatives": "Vec<PollAlternative>"
  130. },
  131. "PrivilegedActor": {
  132. "_enum": {
  133. "Lead": "Null",
  134. "Moderator": "ModeratorId"
  135. }
  136. },
  137. "ThreadOf": {
  138. "title_hash": "Hash",
  139. "category_id": "CategoryId",
  140. "author_id": "ForumUserId",
  141. "archived": "bool",
  142. "poll": "Option<Poll>",
  143. "num_direct_posts": "u32"
  144. },
  145. "ApplicationId": "u64",
  146. "Application": {
  147. "role_account_id": "AccountId",
  148. "reward_account_id": "AccountId",
  149. "staking_account_id": "AccountId",
  150. "member_id": "MemberId",
  151. "description_hash": "Bytes",
  152. "opening_id": "OpeningId"
  153. },
  154. "ApplicationInfo": {
  155. "application_id": "ApplicationId",
  156. "application": "Application"
  157. },
  158. "ApplicationIdSet": "BTreeSet<ApplicationId>",
  159. "ApplicationIdToWorkerIdMap": "BTreeMap<ApplicationId,WorkerId>",
  160. "WorkerId": "u64",
  161. "Worker": {
  162. "member_id": "MemberId",
  163. "role_account_id": "AccountId",
  164. "staking_account_id": "AccountId",
  165. "reward_account_id": "AccountId",
  166. "started_leaving_at": "Option<u32>",
  167. "job_unstaking_period": "u32",
  168. "reward_per_block": "Option<u128>",
  169. "missed_reward": "Option<u128>",
  170. "created_at": "u32"
  171. },
  172. "WorkerInfo": {
  173. "worker_id": "WorkerId",
  174. "worker": "Worker"
  175. },
  176. "Opening": {
  177. "opening_type": "OpeningType",
  178. "created": "u32",
  179. "description_hash": "Bytes",
  180. "stake_policy": "StakePolicy",
  181. "reward_per_block": "Option<u128>"
  182. },
  183. "OpeningId": "u64",
  184. "StakePolicy": {
  185. "stake_amount": "u128",
  186. "leaving_unstaking_period": "u32"
  187. },
  188. "StakeParameters": {
  189. "stake": "u128",
  190. "staking_account_id": "AccountId"
  191. },
  192. "StorageProviderId": "u64",
  193. "OpeningType": {
  194. "_enum": {
  195. "Leader": "Null",
  196. "Regular": "Null"
  197. }
  198. },
  199. "ApplyOnOpeningParameters": {
  200. "member_id": "MemberId",
  201. "opening_id": "OpeningId",
  202. "role_account_id": "AccountId",
  203. "reward_account_id": "AccountId",
  204. "description": "Bytes",
  205. "stake_parameters": "StakeParameters"
  206. },
  207. "Penalty": {
  208. "slashing_text": "Text",
  209. "slashing_amount": "u128"
  210. },
  211. "RewardPaymentType": {
  212. "_enum": [
  213. "MissedReward",
  214. "RegularReward"
  215. ]
  216. },
  217. "Url": "Text",
  218. "IPNSIdentity": "Text",
  219. "ServiceProviderRecord": {
  220. "identity": "IPNSIdentity",
  221. "expires_at": "u32"
  222. },
  223. "ContentId": "[u8;32]",
  224. "LiaisonJudgement": {
  225. "_enum": [
  226. "Pending",
  227. "Accepted",
  228. "Rejected"
  229. ]
  230. },
  231. "DataObject": {
  232. "owner": "MemberId",
  233. "added_at": "BlockAndTime",
  234. "type_id": "DataObjectTypeId",
  235. "size": "u64",
  236. "liaison": "StorageProviderId",
  237. "liaison_judgement": "LiaisonJudgement",
  238. "ipfs_content_id": "Text"
  239. },
  240. "DataObjectStorageRelationshipId": "u64",
  241. "DataObjectStorageRelationship": {
  242. "content_id": "ContentId",
  243. "storage_provider": "StorageProviderId",
  244. "ready": "bool"
  245. },
  246. "DataObjectTypeId": "u64",
  247. "DataObjectType": {
  248. "description": "Text",
  249. "active": "bool"
  250. },
  251. "DataObjectsMap": "BTreeMap<ContentId,DataObject>",
  252. "ParticipantId": "u64",
  253. "Title": "Text",
  254. "UpdatedTitle": "Option<Text>",
  255. "UpdatedBody": "Option<Text>",
  256. "ReplyId": "u64",
  257. "Reply": {
  258. "text_hash": "Hash",
  259. "owner": "ParticipantId",
  260. "parent_id": "PostId"
  261. },
  262. "ReplyToDelete": {
  263. "post_id": "PostId",
  264. "reply_id": "ReplyId",
  265. "hide": "bool"
  266. },
  267. "ProposalId": "u32",
  268. "ProposalStatus": {
  269. "_enum": {
  270. "Active": "Null",
  271. "PendingExecution": "u32",
  272. "PendingConstitutionality": "Null"
  273. }
  274. },
  275. "ProposalOf": {
  276. "parameters": "ProposalParameters",
  277. "proposerId": "MemberId",
  278. "activatedAt": "u32",
  279. "status": "ProposalStatus",
  280. "votingResults": "VotingResults",
  281. "exactExecutionBlock": "Option<u32>",
  282. "nrOfCouncilConfirmations": "u32",
  283. "stakingAccountId": "Option<AccountId>"
  284. },
  285. "ProposalDetails": {
  286. "_enum": {
  287. "Signal": "Text",
  288. "RuntimeUpgrade": "Bytes",
  289. "FundingRequest": "Vec<FundingRequestParameters>",
  290. "SetMaxValidatorCount": "u32",
  291. "CreateWorkingGroupLeadOpening": "CreateOpeningParameters",
  292. "FillWorkingGroupLeadOpening": "FillOpeningParameters",
  293. "UpdateWorkingGroupBudget": "(Balance,WorkingGroup,BalanceKind)",
  294. "DecreaseWorkingGroupLeadStake": "(WorkerId,Balance,WorkingGroup)",
  295. "SlashWorkingGroupLead": "(WorkerId,Balance,WorkingGroup)",
  296. "SetWorkingGroupLeadReward": "(WorkerId,Option<Balance>,WorkingGroup)",
  297. "TerminateWorkingGroupLead": "TerminateRoleParameters",
  298. "AmendConstitution": "Text",
  299. "CancelWorkingGroupLeadOpening": "(OpeningId,WorkingGroup)",
  300. "SetMembershipPrice": "u128",
  301. "SetCouncilBudgetIncrement": "u128",
  302. "SetCouncilorReward": "u128",
  303. "SetInitialInvitationBalance": "u128",
  304. "SetInitialInvitationCount": "u32",
  305. "SetMembershipLeadInvitationQuota": "u32",
  306. "SetReferralCut": "u128",
  307. "CreateBlogPost": "(Text,Text)",
  308. "EditBlogPost": "(PostId,Option<Text>,Option<Text>)",
  309. "LockBlogPost": "PostId",
  310. "UnlockBlogPost": "PostId",
  311. "VetoProposal": "ProposalId"
  312. }
  313. },
  314. "ProposalDetailsOf": {
  315. "_enum": {
  316. "Signal": "Text",
  317. "RuntimeUpgrade": "Bytes",
  318. "FundingRequest": "Vec<FundingRequestParameters>",
  319. "SetMaxValidatorCount": "u32",
  320. "CreateWorkingGroupLeadOpening": "CreateOpeningParameters",
  321. "FillWorkingGroupLeadOpening": "FillOpeningParameters",
  322. "UpdateWorkingGroupBudget": "(Balance,WorkingGroup,BalanceKind)",
  323. "DecreaseWorkingGroupLeadStake": "(WorkerId,Balance,WorkingGroup)",
  324. "SlashWorkingGroupLead": "(WorkerId,Balance,WorkingGroup)",
  325. "SetWorkingGroupLeadReward": "(WorkerId,Option<Balance>,WorkingGroup)",
  326. "TerminateWorkingGroupLead": "TerminateRoleParameters",
  327. "AmendConstitution": "Text",
  328. "CancelWorkingGroupLeadOpening": "(OpeningId,WorkingGroup)",
  329. "SetMembershipPrice": "u128",
  330. "SetCouncilBudgetIncrement": "u128",
  331. "SetCouncilorReward": "u128",
  332. "SetInitialInvitationBalance": "u128",
  333. "SetInitialInvitationCount": "u32",
  334. "SetMembershipLeadInvitationQuota": "u32",
  335. "SetReferralCut": "u128",
  336. "CreateBlogPost": "(Text,Text)",
  337. "EditBlogPost": "(PostId,Option<Text>,Option<Text>)",
  338. "LockBlogPost": "PostId",
  339. "UnlockBlogPost": "PostId",
  340. "VetoProposal": "ProposalId"
  341. }
  342. },
  343. "VotingResults": {
  344. "abstensions": "u32",
  345. "approvals": "u32",
  346. "rejections": "u32",
  347. "slashes": "u32"
  348. },
  349. "ProposalParameters": {
  350. "votingPeriod": "u32",
  351. "gracePeriod": "u32",
  352. "approvalQuorumPercentage": "u32",
  353. "approvalThresholdPercentage": "u32",
  354. "slashingQuorumPercentage": "u32",
  355. "slashingThresholdPercentage": "u32",
  356. "requiredStake": "Option<u128>",
  357. "constitutionality": "u32"
  358. },
  359. "GeneralProposalParameters": {
  360. "member_id": "MemberId",
  361. "title": "Text",
  362. "description": "Text",
  363. "staking_account_id": "Option<AccountId>",
  364. "exact_execution_block": "Option<u32>"
  365. },
  366. "VoteKind": {
  367. "_enum": [
  368. "Approve",
  369. "Reject",
  370. "Slash",
  371. "Abstain"
  372. ]
  373. },
  374. "DiscussionThread": {
  375. "activated_at": "u32",
  376. "author_id": "u64",
  377. "mode": "ThreadMode"
  378. },
  379. "DiscussionPost": {
  380. "author_id": "u64"
  381. },
  382. "CreateOpeningParameters": {
  383. "description": "Text",
  384. "stake_policy": "StakePolicy",
  385. "reward_per_block": "Option<u128>",
  386. "working_group": "WorkingGroup"
  387. },
  388. "FillOpeningParameters": {
  389. "opening_id": "OpeningId",
  390. "successful_application_id": "ApplicationId",
  391. "working_group": "WorkingGroup"
  392. },
  393. "TerminateRoleParameters": {
  394. "worker_id": "WorkerId",
  395. "slashing_amount": "Option<u128>",
  396. "working_group": "WorkingGroup"
  397. },
  398. "ProposalDecision": {
  399. "_enum": {
  400. "Canceled": "Null",
  401. "Vetoed": "Null",
  402. "Rejected": "Null",
  403. "Slashed": "Null",
  404. "Expired": "Null",
  405. "Approved": "Approved"
  406. }
  407. },
  408. "ExecutionFailed": {
  409. "error": "Text"
  410. },
  411. "Approved": {
  412. "_enum": [
  413. "PendingExecution",
  414. "PendingConstitutionality"
  415. ]
  416. },
  417. "SetLeadParams": "(MemberId,AccountId)",
  418. "ThreadMode": {
  419. "_enum": {
  420. "Open": "Null",
  421. "Closed": "Vec<MemberId>"
  422. }
  423. },
  424. "ExecutionStatus": {
  425. "_enum": {
  426. "Executed": "Null",
  427. "ExecutionFailed": "ExecutionFailed"
  428. }
  429. },
  430. "FundingRequestParameters": {
  431. "account": "AccountId",
  432. "amount": "u128"
  433. },
  434. "Nonce": "u64",
  435. "EntityId": "u64",
  436. "ClassId": "u64",
  437. "CuratorId": "u64",
  438. "CuratorGroupId": "u64",
  439. "VecMaxLength": "u16",
  440. "TextMaxLength": "u16",
  441. "HashedTextMaxLength": "Option<u16>",
  442. "PropertyId": "u16",
  443. "SchemaId": "u16",
  444. "SameController": "bool",
  445. "ClassPermissions": {
  446. "any_member": "bool",
  447. "entity_creation_blocked": "bool",
  448. "all_entity_property_values_locked": "bool",
  449. "maintainers": "Vec<CuratorGroupId>"
  450. },
  451. "PropertyTypeSingle": {
  452. "_enum": {
  453. "Bool": "Null",
  454. "Uint16": "Null",
  455. "Uint32": "Null",
  456. "Uint64": "Null",
  457. "Int16": "Null",
  458. "Int32": "Null",
  459. "Int64": "Null",
  460. "Text": "TextMaxLength",
  461. "Hash": "HashedTextMaxLength",
  462. "Reference": "(ClassId,SameController)"
  463. }
  464. },
  465. "PropertyTypeVector": {
  466. "vec_type": "PropertyTypeSingle",
  467. "max_length": "VecMaxLength"
  468. },
  469. "PropertyType": {
  470. "_enum": {
  471. "Single": "PropertyTypeSingle",
  472. "Vector": "PropertyTypeVector"
  473. }
  474. },
  475. "PropertyLockingPolicy": {
  476. "is_locked_from_maintainer": "bool",
  477. "is_locked_from_controller": "bool"
  478. },
  479. "Property": {
  480. "property_type": "PropertyType",
  481. "required": "bool",
  482. "unique": "bool",
  483. "name": "Text",
  484. "description": "Text",
  485. "locking_policy": "PropertyLockingPolicy"
  486. },
  487. "Schema": {
  488. "properties": "Vec<PropertyId>",
  489. "is_active": "bool"
  490. },
  491. "Class": {
  492. "class_permissions": "ClassPermissions",
  493. "properties": "Vec<Property>",
  494. "schemas": "Vec<Schema>",
  495. "name": "Text",
  496. "description": "Text",
  497. "maximum_entities_count": "EntityId",
  498. "current_number_of_entities": "EntityId",
  499. "default_entity_creation_voucher_upper_bound": "EntityId"
  500. },
  501. "ClassOf": {
  502. "class_permissions": "ClassPermissions",
  503. "properties": "Vec<Property>",
  504. "schemas": "Vec<Schema>",
  505. "name": "Text",
  506. "description": "Text",
  507. "maximum_entities_count": "EntityId",
  508. "current_number_of_entities": "EntityId",
  509. "default_entity_creation_voucher_upper_bound": "EntityId"
  510. },
  511. "EntityController": {
  512. "_enum": {
  513. "Maintainers": "Null",
  514. "Member": "MemberId",
  515. "Lead": "Null"
  516. }
  517. },
  518. "EntityPermissions": {
  519. "controller": "EntityController",
  520. "frozen": "bool",
  521. "referenceable": "bool"
  522. },
  523. "StoredValue": {
  524. "_enum": {
  525. "Bool": "bool",
  526. "Uint16": "u16",
  527. "Uint32": "u32",
  528. "Uint64": "u64",
  529. "Int16": "i16",
  530. "Int32": "i32",
  531. "Int64": "i64",
  532. "Text": "Text",
  533. "Hash": "Hash",
  534. "Reference": "EntityId"
  535. }
  536. },
  537. "VecStoredValue": {
  538. "_enum": {
  539. "Bool": "Vec<bool>",
  540. "Uint16": "Vec<u16>",
  541. "Uint32": "Vec<u32>",
  542. "Uint64": "Vec<u64>",
  543. "Int16": "Vec<i16>",
  544. "Int32": "Vec<i32>",
  545. "Int64": "Vec<i64>",
  546. "Hash": "Vec<Hash>",
  547. "Text": "Vec<Text>",
  548. "Reference": "Vec<EntityId>"
  549. }
  550. },
  551. "VecStoredPropertyValue": {
  552. "vec_value": "VecStoredValue",
  553. "nonce": "Nonce"
  554. },
  555. "StoredPropertyValue": {
  556. "_enum": {
  557. "Single": "StoredValue",
  558. "Vector": "VecStoredPropertyValue"
  559. }
  560. },
  561. "InboundReferenceCounter": {
  562. "total": "u32",
  563. "same_owner": "u32"
  564. },
  565. "Entity": {
  566. "entity_permissions": "EntityPermissions",
  567. "class_id": "ClassId",
  568. "supported_schemas": "Vec<SchemaId>",
  569. "values": "BTreeMap<PropertyId,StoredPropertyValue>",
  570. "reference_counter": "InboundReferenceCounter"
  571. },
  572. "EntityOf": {
  573. "entity_permissions": "EntityPermissions",
  574. "class_id": "ClassId",
  575. "supported_schemas": "Vec<SchemaId>",
  576. "values": "BTreeMap<PropertyId,StoredPropertyValue>",
  577. "reference_counter": "InboundReferenceCounter"
  578. },
  579. "CuratorGroup": {
  580. "curators": "Vec<CuratorId>",
  581. "active": "bool",
  582. "number_of_classes_maintained": "u32"
  583. },
  584. "EntityCreationVoucher": {
  585. "maximum_entities_count": "EntityId",
  586. "entities_created": "EntityId"
  587. },
  588. "Actor": {
  589. "_enum": {
  590. "Curator": "(CuratorGroupId,CuratorId)",
  591. "Member": "MemberId",
  592. "Lead": "Null"
  593. }
  594. },
  595. "EntityReferenceCounterSideEffect": {
  596. "total": "i32",
  597. "same_owner": "i32"
  598. },
  599. "ReferenceCounterSideEffects": "BTreeMap<EntityId,EntityReferenceCounterSideEffect>",
  600. "SideEffects": "Option<ReferenceCounterSideEffects>",
  601. "SideEffect": "Option<(EntityId,EntityReferenceCounterSideEffect)>",
  602. "Status": "bool",
  603. "InputValue": {
  604. "_enum": {
  605. "Bool": "bool",
  606. "Uint16": "u16",
  607. "Uint32": "u32",
  608. "Uint64": "u64",
  609. "Int16": "i16",
  610. "Int32": "i32",
  611. "Int64": "i64",
  612. "Text": "Text",
  613. "TextToHash": "Text",
  614. "Reference": "EntityId"
  615. }
  616. },
  617. "VecInputValue": {
  618. "_enum": {
  619. "Bool": "Vec<bool>",
  620. "Uint16": "Vec<u16>",
  621. "Uint32": "Vec<u32>",
  622. "Uint64": "Vec<u64>",
  623. "Int16": "Vec<i16>",
  624. "Int32": "Vec<i32>",
  625. "Int64": "Vec<i64>",
  626. "TextToHash": "Vec<Text>",
  627. "Text": "Vec<Text>",
  628. "Reference": "Vec<EntityId>"
  629. }
  630. },
  631. "InputPropertyValue": {
  632. "_enum": {
  633. "Single": "InputValue",
  634. "Vector": "VecInputValue"
  635. }
  636. },
  637. "ParameterizedEntity": {
  638. "_enum": {
  639. "InternalEntityJustAdded": "u32",
  640. "ExistingEntity": "EntityId"
  641. }
  642. },
  643. "ParametrizedPropertyValue": {
  644. "_enum": {
  645. "InputPropertyValue": "InputPropertyValue",
  646. "InternalEntityJustAdded": "u32",
  647. "InternalEntityVec": "Vec<ParameterizedEntity>"
  648. }
  649. },
  650. "ParametrizedClassPropertyValue": {
  651. "in_class_index": "PropertyId",
  652. "value": "ParametrizedPropertyValue"
  653. },
  654. "CreateEntityOperation": {
  655. "class_id": "ClassId"
  656. },
  657. "UpdatePropertyValuesOperation": {
  658. "entity_id": "ParameterizedEntity",
  659. "new_parametrized_property_values": "Vec<ParametrizedClassPropertyValue>"
  660. },
  661. "AddSchemaSupportToEntityOperation": {
  662. "entity_id": "ParameterizedEntity",
  663. "schema_id": "SchemaId",
  664. "parametrized_property_values": "Vec<ParametrizedClassPropertyValue>"
  665. },
  666. "OperationType": {
  667. "_enum": {
  668. "CreateEntity": "CreateEntityOperation",
  669. "UpdatePropertyValues": "UpdatePropertyValuesOperation",
  670. "AddSchemaSupportToEntity": "AddSchemaSupportToEntityOperation"
  671. }
  672. },
  673. "InputEntityValuesMap": "BTreeMap<PropertyId,InputPropertyValue>",
  674. "FailedAt": "u32",
  675. "ReferendumStageVoting": {
  676. "started": "u32",
  677. "winning_target_count": "u64",
  678. "current_cycle_id": "u64"
  679. },
  680. "ReferendumStageRevealing": {
  681. "started": "u32",
  682. "winning_target_count": "u64",
  683. "intermediate_winners": "Vec<OptionResult>",
  684. "current_cycle_id": "u64"
  685. },
  686. "ReferendumStage": {
  687. "_enum": {
  688. "Inactive": "Null",
  689. "Voting": "ReferendumStageVoting",
  690. "Revealing": "ReferendumStageRevealing"
  691. }
  692. },
  693. "OptionResult": {
  694. "option_id": "MemberId",
  695. "vote_power": "VotePower"
  696. },
  697. "VotePower": "u128",
  698. "ConstitutionInfo": {
  699. "text_hash": "Hash"
  700. },
  701. "BountyId": "u32",
  702. "EntryId": "u32",
  703. "BountyActor": {
  704. "_enum": {
  705. "Council": "Null",
  706. "Member": "MemberId"
  707. }
  708. },
  709. "AssuranceContractType": {
  710. "_enum": {
  711. "Open": "Null",
  712. "Closed": "Vec<MemberId>"
  713. }
  714. },
  715. "FundingType_Limited": {
  716. "min_funding_amount": "u128",
  717. "max_funding_amount": "u128",
  718. "funding_period": "u32"
  719. },
  720. "FundingType_Perpetual": {
  721. "target": "u128"
  722. },
  723. "FundingType": {
  724. "_enum": {
  725. "Perpetual": "FundingType_Perpetual",
  726. "Limited": "FundingType_Limited"
  727. }
  728. },
  729. "BountyCreationParameters": {
  730. "oracle": "BountyActor",
  731. "contract_type": "AssuranceContractType",
  732. "creator": "BountyActor",
  733. "cherry": "u128",
  734. "entrant_stake": "u128",
  735. "funding_type": "FundingType",
  736. "work_period": "u32",
  737. "judging_period": "u32"
  738. },
  739. "OracleJudgment_Winner": {
  740. "reward": "u128"
  741. },
  742. "OracleJudgment": {
  743. "_enum": {
  744. "Winner": "OracleJudgment_Winner",
  745. "Rejected": "Null"
  746. }
  747. },
  748. "Entry": {
  749. "member_id": "MemberId",
  750. "staking_account_id": "GenericAccountId",
  751. "submitted_at": "u32",
  752. "work_submitted": "bool",
  753. "oracle_judgment_result": "Option<OracleJudgment>"
  754. }
  755. }