Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.84 KB | None | 0 0
  1. {
  2. "MetadataV7": {
  3. "modules": [
  4. {
  5. "name": "System",
  6. "storage": {
  7. "prefix": "System",
  8. "items": [
  9. {
  10. "name": "AccountNonce",
  11. "modifier": "Default",
  12. "type": {
  13. "MapType": {
  14. "hasher": "Blake2_256",
  15. "key": "AccountId",
  16. "value": "Index",
  17. "isLinked": false
  18. }
  19. },
  20. "fallback": "0x0000000000000000",
  21. "documentation": [
  22. " Extrinsics nonce for accounts."
  23. ]
  24. },
  25. {
  26. "name": "ExtrinsicCount",
  27. "modifier": "Optional",
  28. "type": {
  29. "PlainType": "u32"
  30. },
  31. "fallback": "0x00",
  32. "documentation": [
  33. " Total extrinsics count for the current block."
  34. ]
  35. },
  36. {
  37. "name": "AllExtrinsicsWeight",
  38. "modifier": "Optional",
  39. "type": {
  40. "PlainType": "Weight"
  41. },
  42. "fallback": "0x00",
  43. "documentation": [
  44. " Total weight for all extrinsics put together, for the current block."
  45. ]
  46. },
  47. {
  48. "name": "AllExtrinsicsLen",
  49. "modifier": "Optional",
  50. "type": {
  51. "PlainType": "u32"
  52. },
  53. "fallback": "0x00",
  54. "documentation": [
  55. " Total length (in bytes) for all extrinsics put together, for the current block."
  56. ]
  57. },
  58. {
  59. "name": "NextWeightMultiplier",
  60. "modifier": "Default",
  61. "type": {
  62. "PlainType": "WeightMultiplier"
  63. },
  64. "fallback": "0x0000000000000000",
  65. "documentation": [
  66. " The next weight multiplier. This should be updated at the end of each block based on the",
  67. " saturation level (weight)."
  68. ]
  69. },
  70. {
  71. "name": "BlockHash",
  72. "modifier": "Default",
  73. "type": {
  74. "MapType": {
  75. "hasher": "Blake2_256",
  76. "key": "BlockNumber",
  77. "value": "Hash",
  78. "isLinked": false
  79. }
  80. },
  81. "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000",
  82. "documentation": [
  83. " Map of block numbers to block hashes."
  84. ]
  85. },
  86. {
  87. "name": "ExtrinsicData",
  88. "modifier": "Default",
  89. "type": {
  90. "MapType": {
  91. "hasher": "Blake2_256",
  92. "key": "u32",
  93. "value": "Bytes",
  94. "isLinked": false
  95. }
  96. },
  97. "fallback": "0x00",
  98. "documentation": [
  99. " Extrinsics data for the current block (maps an extrinsic's index to its data)."
  100. ]
  101. },
  102. {
  103. "name": "RandomMaterial",
  104. "modifier": "Default",
  105. "type": {
  106. "PlainType": "(i8,Vec<Hash>)"
  107. },
  108. "fallback": "0x0000",
  109. "documentation": [
  110. " Series of block headers from the last 81 blocks that acts as random seed material. This is arranged as a",
  111. " ring buffer with the `i8` prefix being the index into the `Vec` of the oldest hash."
  112. ]
  113. },
  114. {
  115. "name": "Number",
  116. "modifier": "Default",
  117. "type": {
  118. "PlainType": "BlockNumber"
  119. },
  120. "fallback": "0x0000000000000000",
  121. "documentation": [
  122. " The current block number being processed. Set by `execute_block`."
  123. ]
  124. },
  125. {
  126. "name": "ParentHash",
  127. "modifier": "Default",
  128. "type": {
  129. "PlainType": "Hash"
  130. },
  131. "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000",
  132. "documentation": [
  133. " Hash of the previous block."
  134. ]
  135. },
  136. {
  137. "name": "ExtrinsicsRoot",
  138. "modifier": "Default",
  139. "type": {
  140. "PlainType": "Hash"
  141. },
  142. "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000",
  143. "documentation": [
  144. " Extrinsics root of the current block, also part of the block header."
  145. ]
  146. },
  147. {
  148. "name": "Digest",
  149. "modifier": "Default",
  150. "type": {
  151. "PlainType": "DigestOf"
  152. },
  153. "fallback": "0x00",
  154. "documentation": [
  155. " Digest of the current block, also part of the block header."
  156. ]
  157. },
  158. {
  159. "name": "Events",
  160. "modifier": "Default",
  161. "type": {
  162. "PlainType": "Vec<EventRecord>"
  163. },
  164. "fallback": "0x00",
  165. "documentation": [
  166. " Events deposited for the current block."
  167. ]
  168. },
  169. {
  170. "name": "EventCount",
  171. "modifier": "Default",
  172. "type": {
  173. "PlainType": "EventIndex"
  174. },
  175. "fallback": "0x00000000",
  176. "documentation": [
  177. " The number of events in the `Events<T>` list."
  178. ]
  179. },
  180. {
  181. "name": "EventTopics",
  182. "modifier": "Default",
  183. "type": {
  184. "DoubleMapType": {
  185. "hasher": "Blake2_256",
  186. "key1": "Null",
  187. "key2": "Hash",
  188. "value": "Vec<(BlockNumber,EventIndex)>",
  189. "key2Hasher": "Blake2_256"
  190. }
  191. },
  192. "fallback": "0x00",
  193. "documentation": [
  194. " Mapping between a topic (represented by T::Hash) and a vector of indexes",
  195. " of events in the `<Events<T>>` list.",
  196. "",
  197. " The first key serves no purpose. This field is declared as double_map just",
  198. " for convenience of using `remove_prefix`.",
  199. "",
  200. " All topic vectors have deterministic storage locations depending on the topic. This",
  201. " allows light-clients to leverage the changes trie storage tracking mechanism and",
  202. " in case of changes fetch the list of events of interest.",
  203. "",
  204. " The value has the type `(T::BlockNumber, EventIndex)` because if we used only just",
  205. " the `EventIndex` then in case if the topic has the same contents on the next block",
  206. " no notification will be triggered thus the event might be lost."
  207. ]
  208. }
  209. ]
  210. },
  211. "calls": [
  212. {
  213. "name": "fill_block",
  214. "args": [],
  215. "documentation": [
  216. " A big dispatch that will disallow any other transaction to be included."
  217. ]
  218. },
  219. {
  220. "name": "remark",
  221. "args": [
  222. {
  223. "name": "_remark",
  224. "type": "Bytes"
  225. }
  226. ],
  227. "documentation": [
  228. " Make some on-chain remark."
  229. ]
  230. },
  231. {
  232. "name": "set_heap_pages",
  233. "args": [
  234. {
  235. "name": "pages",
  236. "type": "u64"
  237. }
  238. ],
  239. "documentation": [
  240. " Set the number of pages in the WebAssembly environment's heap."
  241. ]
  242. },
  243. {
  244. "name": "set_code",
  245. "args": [
  246. {
  247. "name": "new",
  248. "type": "Bytes"
  249. }
  250. ],
  251. "documentation": [
  252. " Set the new code."
  253. ]
  254. },
  255. {
  256. "name": "set_storage",
  257. "args": [
  258. {
  259. "name": "items",
  260. "type": "Vec<KeyValue>"
  261. }
  262. ],
  263. "documentation": [
  264. " Set some items of storage."
  265. ]
  266. },
  267. {
  268. "name": "kill_storage",
  269. "args": [
  270. {
  271. "name": "keys",
  272. "type": "Vec<Key>"
  273. }
  274. ],
  275. "documentation": [
  276. " Kill some items from storage."
  277. ]
  278. }
  279. ],
  280. "events": [
  281. {
  282. "name": "ExtrinsicSuccess",
  283. "args": [],
  284. "documentation": [
  285. " An extrinsic completed successfully."
  286. ]
  287. },
  288. {
  289. "name": "ExtrinsicFailed",
  290. "args": [],
  291. "documentation": [
  292. " An extrinsic failed."
  293. ]
  294. }
  295. ],
  296. "constants": []
  297. },
  298. {
  299. "name": "Timestamp",
  300. "storage": {
  301. "prefix": "Timestamp",
  302. "items": [
  303. {
  304. "name": "Now",
  305. "modifier": "Default",
  306. "type": {
  307. "PlainType": "Moment"
  308. },
  309. "fallback": "0x0000000000000000",
  310. "documentation": [
  311. " Current time for the current block."
  312. ]
  313. },
  314. {
  315. "name": "DidUpdate",
  316. "modifier": "Default",
  317. "type": {
  318. "PlainType": "bool"
  319. },
  320. "fallback": "0x00",
  321. "documentation": [
  322. " Did the timestamp get updated in this block?"
  323. ]
  324. }
  325. ]
  326. },
  327. "calls": [
  328. {
  329. "name": "set",
  330. "args": [
  331. {
  332. "name": "now",
  333. "type": "Compact<Moment>"
  334. }
  335. ],
  336. "documentation": [
  337. " Set the current time.",
  338. "",
  339. " This call should be invoked exactly once per block. It will panic at the finalization",
  340. " phase, if this call hasn't been invoked by that time.",
  341. "",
  342. " The timestamp should be greater than the previous one by the amount specified by",
  343. " `MinimumPeriod`.",
  344. "",
  345. " The dispatch origin for this call must be `Inherent`."
  346. ]
  347. }
  348. ],
  349. "events": null,
  350. "constants": [
  351. {
  352. "name": "MinimumPeriod",
  353. "type": "Moment",
  354. "value": "0x8813000000000000",
  355. "documentation": [
  356. " The minimum period between blocks. Beware that this is different to the *expected* period",
  357. " that the block production apparatus provides. Your chosen consensus system will generally",
  358. " work with this to determine a sensible block time. e.g. For Aura, it will be double this",
  359. " period on default settings."
  360. ]
  361. }
  362. ]
  363. },
  364. {
  365. "name": "Aura",
  366. "storage": null,
  367. "calls": null,
  368. "events": null,
  369. "constants": []
  370. },
  371. {
  372. "name": "Indices",
  373. "storage": {
  374. "prefix": "Indices",
  375. "items": [
  376. {
  377. "name": "NextEnumSet",
  378. "modifier": "Default",
  379. "type": {
  380. "PlainType": "AccountIndex"
  381. },
  382. "fallback": "0x00000000",
  383. "documentation": [
  384. " The next free enumeration set."
  385. ]
  386. },
  387. {
  388. "name": "EnumSet",
  389. "modifier": "Default",
  390. "type": {
  391. "MapType": {
  392. "hasher": "Blake2_256",
  393. "key": "AccountIndex",
  394. "value": "Vec<AccountId>",
  395. "isLinked": false
  396. }
  397. },
  398. "fallback": "0x00",
  399. "documentation": [
  400. " The enumeration sets."
  401. ]
  402. }
  403. ]
  404. },
  405. "calls": [],
  406. "events": [
  407. {
  408. "name": "NewAccountIndex",
  409. "args": [
  410. "AccountId",
  411. "AccountIndex"
  412. ],
  413. "documentation": [
  414. " A new account index was assigned.",
  415. "",
  416. " This event is not triggered when an existing index is reassigned",
  417. " to another `AccountId`."
  418. ]
  419. }
  420. ],
  421. "constants": []
  422. },
  423. {
  424. "name": "Balances",
  425. "storage": {
  426. "prefix": "Balances",
  427. "items": [
  428. {
  429. "name": "TotalIssuance",
  430. "modifier": "Default",
  431. "type": {
  432. "PlainType": "Balance"
  433. },
  434. "fallback": "0x00000000000000000000000000000000",
  435. "documentation": [
  436. " The total units issued in the system."
  437. ]
  438. },
  439. {
  440. "name": "Vesting",
  441. "modifier": "Optional",
  442. "type": {
  443. "MapType": {
  444. "hasher": "Blake2_256",
  445. "key": "AccountId",
  446. "value": "VestingSchedule",
  447. "isLinked": false
  448. }
  449. },
  450. "fallback": "0x00",
  451. "documentation": [
  452. " Information regarding the vesting of a given account."
  453. ]
  454. },
  455. {
  456. "name": "FreeBalance",
  457. "modifier": "Default",
  458. "type": {
  459. "MapType": {
  460. "hasher": "Blake2_256",
  461. "key": "AccountId",
  462. "value": "Balance",
  463. "isLinked": false
  464. }
  465. },
  466. "fallback": "0x00000000000000000000000000000000",
  467. "documentation": [
  468. " The 'free' balance of a given account.",
  469. "",
  470. " This is the only balance that matters in terms of most operations on tokens. It",
  471. " alone is used to determine the balance when in the contract execution environment. When this",
  472. " balance falls below the value of `ExistentialDeposit`, then the 'current account' is",
  473. " deleted: specifically `FreeBalance`. Further, the `OnFreeBalanceZero` callback",
  474. " is invoked, giving a chance to external modules to clean up data associated with",
  475. " the deleted account.",
  476. "",
  477. " `system::AccountNonce` is also deleted if `ReservedBalance` is also zero (it also gets",
  478. " collapsed to zero if it ever becomes less than `ExistentialDeposit`."
  479. ]
  480. },
  481. {
  482. "name": "ReservedBalance",
  483. "modifier": "Default",
  484. "type": {
  485. "MapType": {
  486. "hasher": "Blake2_256",
  487. "key": "AccountId",
  488. "value": "Balance",
  489. "isLinked": false
  490. }
  491. },
  492. "fallback": "0x00000000000000000000000000000000",
  493. "documentation": [
  494. " The amount of the balance of a given account that is externally reserved; this can still get",
  495. " slashed, but gets slashed last of all.",
  496. "",
  497. " This balance is a 'reserve' balance that other subsystems use in order to set aside tokens",
  498. " that are still 'owned' by the account holder, but which are suspendable.",
  499. "",
  500. " When this balance falls below the value of `ExistentialDeposit`, then this 'reserve account'",
  501. " is deleted: specifically, `ReservedBalance`.",
  502. "",
  503. " `system::AccountNonce` is also deleted if `FreeBalance` is also zero (it also gets",
  504. " collapsed to zero if it ever becomes less than `ExistentialDeposit`.)"
  505. ]
  506. },
  507. {
  508. "name": "Locks",
  509. "modifier": "Default",
  510. "type": {
  511. "MapType": {
  512. "hasher": "Blake2_256",
  513. "key": "AccountId",
  514. "value": "Vec<BalanceLock>",
  515. "isLinked": false
  516. }
  517. },
  518. "fallback": "0x00",
  519. "documentation": [
  520. " Any liquidity locks on some account balances."
  521. ]
  522. }
  523. ]
  524. },
  525. "calls": [
  526. {
  527. "name": "transfer",
  528. "args": [
  529. {
  530. "name": "dest",
  531. "type": "Address"
  532. },
  533. {
  534. "name": "value",
  535. "type": "Compact<Balance>"
  536. }
  537. ],
  538. "documentation": [
  539. " Transfer some liquid free balance to another account.",
  540. "",
  541. " `transfer` will set the `FreeBalance` of the sender and receiver.",
  542. " It will decrease the total issuance of the system by the `TransferFee`.",
  543. " If the sender's account is below the existential deposit as a result",
  544. " of the transfer, the account will be reaped.",
  545. "",
  546. " The dispatch origin for this call must be `Signed` by the transactor.",
  547. "",
  548. " # <weight>",
  549. " - Dependent on arguments but not critical, given proper implementations for",
  550. " input config types. See related functions below.",
  551. " - It contains a limited number of reads and writes internally and no complex computation.",
  552. "",
  553. " Related functions:",
  554. "",
  555. " - `ensure_can_withdraw` is always called internally but has a bounded complexity.",
  556. " - Transferring balances to accounts that did not exist before will cause",
  557. " `T::OnNewAccount::on_new_account` to be called.",
  558. " - Removing enough funds from an account will trigger",
  559. " `T::DustRemoval::on_unbalanced` and `T::OnFreeBalanceZero::on_free_balance_zero`.",
  560. "",
  561. " # </weight>"
  562. ]
  563. },
  564. {
  565. "name": "set_balance",
  566. "args": [
  567. {
  568. "name": "who",
  569. "type": "Address"
  570. },
  571. {
  572. "name": "new_free",
  573. "type": "Compact<Balance>"
  574. },
  575. {
  576. "name": "new_reserved",
  577. "type": "Compact<Balance>"
  578. }
  579. ],
  580. "documentation": [
  581. " Set the balances of a given account.",
  582. "",
  583. " This will alter `FreeBalance` and `ReservedBalance` in storage. it will",
  584. " also decrease the total issuance of the system (`TotalIssuance`).",
  585. " If the new free or reserved balance is below the existential deposit,",
  586. " it will reset the account nonce (`system::AccountNonce`).",
  587. "",
  588. " The dispatch origin for this call is `root`.",
  589. "",
  590. " # <weight>",
  591. " - Independent of the arguments.",
  592. " - Contains a limited number of reads and writes.",
  593. " # </weight>"
  594. ]
  595. }
  596. ],
  597. "events": [
  598. {
  599. "name": "NewAccount",
  600. "args": [
  601. "AccountId",
  602. "Balance"
  603. ],
  604. "documentation": [
  605. " A new account was created."
  606. ]
  607. },
  608. {
  609. "name": "ReapedAccount",
  610. "args": [
  611. "AccountId"
  612. ],
  613. "documentation": [
  614. " An account was reaped."
  615. ]
  616. },
  617. {
  618. "name": "Transfer",
  619. "args": [
  620. "AccountId",
  621. "AccountId",
  622. "Balance",
  623. "Balance"
  624. ],
  625. "documentation": [
  626. " Transfer succeeded (from, to, value, fees)."
  627. ]
  628. }
  629. ],
  630. "constants": [
  631. {
  632. "name": "ExistentialDeposit",
  633. "type": "Balance",
  634. "value": "0xf4010000000000000000000000000000",
  635. "documentation": [
  636. " The minimum amount required to keep an account open."
  637. ]
  638. },
  639. {
  640. "name": "TransferFee",
  641. "type": "Balance",
  642. "value": "0x00000000000000000000000000000000",
  643. "documentation": [
  644. " The fee required to make a transfer."
  645. ]
  646. },
  647. {
  648. "name": "CreationFee",
  649. "type": "Balance",
  650. "value": "0x00000000000000000000000000000000",
  651. "documentation": [
  652. " The fee required to create an account."
  653. ]
  654. },
  655. {
  656. "name": "TransactionBaseFee",
  657. "type": "Balance",
  658. "value": "0x00000000000000000000000000000000",
  659. "documentation": [
  660. " The fee to be paid for making a transaction; the base."
  661. ]
  662. },
  663. {
  664. "name": "TransactionByteFee",
  665. "type": "Balance",
  666. "value": "0x01000000000000000000000000000000",
  667. "documentation": [
  668. " The fee to be paid for making a transaction; the per-byte portion."
  669. ]
  670. }
  671. ]
  672. },
  673. {
  674. "name": "Sudo",
  675. "storage": {
  676. "prefix": "Sudo",
  677. "items": [
  678. {
  679. "name": "Key",
  680. "modifier": "Default",
  681. "type": {
  682. "PlainType": "AccountId"
  683. },
  684. "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000",
  685. "documentation": [
  686. " The `AccountId` of the sudo key."
  687. ]
  688. }
  689. ]
  690. },
  691. "calls": [
  692. {
  693. "name": "sudo",
  694. "args": [
  695. {
  696. "name": "proposal",
  697. "type": "Proposal"
  698. }
  699. ],
  700. "documentation": [
  701. " Authenticates the sudo key and dispatches a function call with `Root` origin.",
  702. "",
  703. " The dispatch origin for this call must be _Signed_.",
  704. "",
  705. " # <weight>",
  706. " - O(1).",
  707. " - Limited storage reads.",
  708. " - No DB writes.",
  709. " # </weight>"
  710. ]
  711. },
  712. {
  713. "name": "set_key",
  714. "args": [
  715. {
  716. "name": "new",
  717. "type": "Address"
  718. }
  719. ],
  720. "documentation": [
  721. " Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.",
  722. "",
  723. " The dispatch origin for this call must be _Signed_.",
  724. "",
  725. " # <weight>",
  726. " - O(1).",
  727. " - Limited storage reads.",
  728. " - One DB change.",
  729. " # </weight>"
  730. ]
  731. }
  732. ],
  733. "events": [
  734. {
  735. "name": "Sudid",
  736. "args": [
  737. "bool"
  738. ],
  739. "documentation": [
  740. " A sudo just took place."
  741. ]
  742. },
  743. {
  744. "name": "KeyChanged",
  745. "args": [
  746. "AccountId"
  747. ],
  748. "documentation": [
  749. " The sudoer just switched identity; the old key is supplied."
  750. ]
  751. }
  752. ],
  753. "constants": []
  754. },
  755. {
  756. "name": "SecondCopy",
  757. "storage": {
  758. "prefix": "Instance2TemplateModule",
  759. "items": [
  760. {
  761. "name": "Something",
  762. "modifier": "Optional",
  763. "type": {
  764. "PlainType": "u32"
  765. },
  766. "fallback": "0x00",
  767. "documentation": []
  768. }
  769. ]
  770. },
  771. "calls": [
  772. {
  773. "name": "do_something",
  774. "args": [
  775. {
  776. "name": "something",
  777. "type": "u32"
  778. }
  779. ],
  780. "documentation": []
  781. }
  782. ],
  783. "events": [
  784. {
  785. "name": "SomethingStored",
  786. "args": [
  787. "u32",
  788. "AccountId"
  789. ],
  790. "documentation": []
  791. }
  792. ],
  793. "constants": []
  794. }
  795. ]
  796. }
  797. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement