1 line
1.7 KiB
JavaScript
1 line
1.7 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[120],{487:function(t,a,e){"use strict";e.r(a);var r=e(46),o=Object(r.a)({},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"functions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#functions","aria-hidden":"true"}},[t._v("#")]),t._v(" Functions")]),t._v(" "),e("p",[e("a",{attrs:{id:"frommetadata"}})]),t._v(" "),e("h2",{attrs:{id:"frommetadata"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#frommetadata","aria-hidden":"true"}},[t._v("#")]),t._v(" fromMetadata")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("fromMetadata")]),t._v("(metadata: "),e("em",[e("code",[t._v("MetadataV0")])]),t._v("): "),e("code",[t._v("ModulesWithMethods")])]),t._v(" "),e("p",[e("em",[t._v("Defined in "),e("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/73a5ea1/packages/type-extrinsics/src/fromMetadata.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("fromMetadata.ts:21"),e("OutboundLink")],1)])]),t._v(" "),e("p",[t._v("Extend a storage object with the storage modules & module functions present in the metadata.")]),t._v(" "),e("p",[e("strong",[t._v("Parameters:")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("metadata")]),t._v(" "),e("td",[e("code",[t._v("MetadataV0")])]),t._v(" "),e("td",[t._v("The metadata to extend the storage object against.")])])])]),t._v(" "),e("p",[e("strong",[t._v("Returns:")]),t._v(" "),e("code",[t._v("ModulesWithMethods")])]),t._v(" "),e("hr")])},[],!1,null,null,null);a.default=o.exports}}]); |