1 line
2.2 KiB
JavaScript
1 line
2.2 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[122],{490:function(t,e,r){"use strict";r.r(e);var n=r(46),a=Object(n.a)({},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"functions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#functions","aria-hidden":"true"}},[t._v("#")]),t._v(" Functions")]),t._v(" "),r("p",[r("a",{attrs:{id:"createdescriptor"}})]),t._v(" "),r("h2",{attrs:{id:"createdescriptor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#createdescriptor","aria-hidden":"true"}},[t._v("#")]),t._v(" createDescriptor")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("createDescriptor")]),t._v("(section: "),r("em",[r("code",[t._v("string")])]),t._v(", method: "),r("em",[r("code",[t._v("string")])]),t._v(", index: "),r("em",[r("code",[t._v("number")])]),t._v(", meta: "),r("em",[r("code",[t._v("FunctionMetadata")])]),t._v("): "),r("code",[t._v("MethodFunction")])]),t._v(" "),r("p",[r("em",[t._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/73a5ea1/packages/type-extrinsics/src/utils/createUnchecked.ts#L16",target:"_blank",rel:"noopener noreferrer"}},[t._v("utils/createUnchecked.ts:16"),r("OutboundLink")],1)])]),t._v(" "),r("p",[t._v("From the metadata of a function in the module's storage, generate the function that will return the an UncheckExtrinsic.")]),t._v(" "),r("p",[r("strong",[t._v("Parameters:")])]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[t._v("section")]),t._v(" "),r("td",[r("code",[t._v("string")])]),t._v(" "),r("td")]),t._v(" "),r("tr",[r("td",[t._v("method")]),t._v(" "),r("td",[r("code",[t._v("string")])]),t._v(" "),r("td")]),t._v(" "),r("tr",[r("td",[t._v("index")]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",[t._v("Index of the module section in the modules array.")])]),t._v(" "),r("tr",[r("td",[t._v("meta")]),t._v(" "),r("td",[r("code",[t._v("FunctionMetadata")])]),t._v(" "),r("td")])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("code",[t._v("MethodFunction")])]),t._v(" "),r("hr")])},[],!1,null,null,null);e.default=a.exports}}]); |