1 line
23 KiB
JavaScript
1 line
23 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[176],{652:function(e,t,r){"use strict";r.r(t);var s=r(46),_=Object(s.a)({},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy","aria-hidden":"true"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("p",[e._v("↳ "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("<"),r("code",[e._v("PlainType")]),e._v(" | "),r("router-link",{attrs:{to:"/types/classes/_metadata_v0_modules_.maptype.html"}},[e._v("MapType")]),e._v(">")],1),e._v(" "),r("p",[r("strong",[e._v("↳ StorageFunctionType")])]),e._v(" "),r("h1",{attrs:{id:"implements"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#implements","aria-hidden":"true"}},[e._v("#")]),e._v(" Implements")]),e._v(" "),r("ul",[r("li",[r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[e._v("Codec")])],1)]),e._v(" "),r("h1",{attrs:{id:"constructors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructors","aria-hidden":"true"}},[e._v("#")]),e._v(" Constructors")]),e._v(" "),r("p",[r("a",{attrs:{id:"constructor"}})]),e._v(" "),r("h2",{attrs:{id:"constructor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructor","aria-hidden":"true"}},[e._v("#")]),e._v(" constructor")]),e._v(" "),r("p",[e._v("⊕ "),r("strong",[e._v("new StorageFunctionType")]),e._v("(value?: "),r("em",[r("code",[e._v("any")])]),e._v(", index?: "),r("em",[r("code",[e._v("undefined")]),e._v(" | "),r("code",[e._v("number")])]),e._v("): "),r("router-link",{attrs:{to:"/types/classes/_metadata_v0_modules_.storagefunctiontype.html"}},[e._v("StorageFunctionType")])],1),e._v(" "),r("p",[r("em",[e._v("Overrides "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#constructor"}},[e._v("constructor")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/Metadata/v0/Modules.ts#L164",target:"_blank",rel:"noopener noreferrer"}},[e._v("Metadata/v0/Modules.ts:164"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("strong",[e._v("Parameters:")])]),e._v(" "),r("table",[r("thead",[r("tr",[r("th",[e._v("Name")]),e._v(" "),r("th",[e._v("Type")])])]),e._v(" "),r("tbody",[r("tr",[r("td",[r("code",[e._v("Optional")]),e._v(" value")]),e._v(" "),r("td",[r("code",[e._v("any")])])]),e._v(" "),r("tr",[r("td",[r("code",[e._v("Optional")]),e._v(" index")]),e._v(" "),r("td",[r("code",[e._v("undefined")]),e._v(" | "),r("code",[e._v("number")])])])])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("router-link",{attrs:{to:"/types/classes/_metadata_v0_modules_.storagefunctiontype.html"}},[e._v("StorageFunctionType")])],1),e._v(" "),r("hr"),e._v(" "),r("h1",{attrs:{id:"accessors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#accessors","aria-hidden":"true"}},[e._v("#")]),e._v(" Accessors")]),e._v(" "),r("p",[r("a",{attrs:{id:"asmap"}})]),e._v(" "),r("h2",{attrs:{id:"asmap"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#asmap","aria-hidden":"true"}},[e._v("#")]),e._v(" asMap")]),e._v(" "),r("p",[r("strong",[e._v("get asMap")]),e._v("(): "),r("router-link",{attrs:{to:"/types/classes/_metadata_v0_modules_.maptype.html"}},[e._v("MapType")])],1),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/Metadata/v0/Modules.ts#L182",target:"_blank",rel:"noopener noreferrer"}},[e._v("Metadata/v0/Modules.ts:182"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": The value as a mapped value")]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("router-link",{attrs:{to:"/types/classes/_metadata_v0_modules_.maptype.html"}},[e._v("MapType")])],1),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"astype"}})]),e._v(" "),r("h2",{attrs:{id:"astype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#astype","aria-hidden":"true"}},[e._v("#")]),e._v(" asType")]),e._v(" "),r("p",[r("strong",[e._v("get asType")]),e._v("(): "),r("code",[e._v("PlainType")])]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/Metadata/v0/Modules.ts#L189",target:"_blank",rel:"noopener noreferrer"}},[e._v("Metadata/v0/Modules.ts:189"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": The value as a "),r("router-link",{attrs:{to:"/types/classes/_codec_struct_.struct.html#type"}},[e._v("Type")]),e._v(" value")],1),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("PlainType")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"encodedlength"}})]),e._v(" "),r("h2",{attrs:{id:"encodedlength"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#encodedlength","aria-hidden":"true"}},[e._v("#")]),e._v(" encodedLength")]),e._v(" "),r("p",[r("strong",[e._v("get encodedLength")]),e._v("(): "),r("code",[e._v("number")])]),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#encodedlength"}},[e._v("encodedLength")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L114",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:114"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": The length of the value when encoded as a Uint8Array")]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("number")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"index"}})]),e._v(" "),r("h2",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index","aria-hidden":"true"}},[e._v("#")]),e._v(" index")]),e._v(" "),r("p",[r("strong",[e._v("get index")]),e._v("(): "),r("code",[e._v("number")])]),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#index"}},[e._v("index")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L121",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:121"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": The index of the metadata value")]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("number")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"isempty"}})]),e._v(" "),r("h2",{attrs:{id:"isempty"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#isempty","aria-hidden":"true"}},[e._v("#")]),e._v(" isEmpty")]),e._v(" "),r("p",[r("strong",[e._v("get isEmpty")]),e._v("(): "),r("code",[e._v("boolean")])]),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#isempty"}},[e._v("isEmpty")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L128",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:128"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": Checks if the value is an empty value")]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("boolean")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"ismap"}})]),e._v(" "),r("h2",{attrs:{id:"ismap"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#ismap","aria-hidden":"true"}},[e._v("#")]),e._v(" isMap")]),e._v(" "),r("p",[r("strong",[e._v("get isMap")]),e._v("(): "),r("code",[e._v("boolean")])]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/Metadata/v0/Modules.ts#L175",target:"_blank",rel:"noopener noreferrer"}},[e._v("Metadata/v0/Modules.ts:175"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": "),r("code",[e._v("true")]),e._v(" if the storage entry is a map")]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("boolean")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"isnone"}})]),e._v(" "),r("h2",{attrs:{id:"isnone"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#isnone","aria-hidden":"true"}},[e._v("#")]),e._v(" isNone")]),e._v(" "),r("p",[r("strong",[e._v("get isNone")]),e._v("(): "),r("code",[e._v("boolean")])]),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#isnone"}},[e._v("isNone")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L135",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:135"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": Checks if the Enum points to a "),r("router-link",{attrs:{to:"/types/classes/_primitive_null_.null.html"}},[e._v("Null")]),e._v(" type")],1),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("boolean")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"isnull"}})]),e._v(" "),r("h2",{attrs:{id:"isnull"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#isnull","aria-hidden":"true"}},[e._v("#")]),e._v(" isNull")]),e._v(" "),r("p",[r("strong",[e._v("get isNull")]),e._v("(): "),r("code",[e._v("boolean")])]),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#isnull"}},[e._v("isNull")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L142",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:142"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": Checks if the Enum points to a "),r("router-link",{attrs:{to:"/types/classes/_primitive_null_.null.html"}},[e._v("Null")]),e._v(" type (deprecated, use isNone)")],1),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("boolean")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"type"}})]),e._v(" "),r("h2",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type","aria-hidden":"true"}},[e._v("#")]),e._v(" type")]),e._v(" "),r("p",[r("strong",[e._v("get type")]),e._v("(): "),r("code",[e._v("string")])]),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#type"}},[e._v("type")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L149",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:149"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": The name of the type this enum value represents")]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("string")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"value"}})]),e._v(" "),r("h2",{attrs:{id:"value"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#value","aria-hidden":"true"}},[e._v("#")]),e._v(" value")]),e._v(" "),r("p",[r("strong",[e._v("get value")]),e._v("(): "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[e._v("Codec")])],1),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#value"}},[e._v("value")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L156",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:156"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": The value of the enum")]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[e._v("Codec")])],1),e._v(" "),r("hr"),e._v(" "),r("h1",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods","aria-hidden":"true"}},[e._v("#")]),e._v(" Methods")]),e._v(" "),r("p",[r("a",{attrs:{id:"eq"}})]),e._v(" "),r("h2",{attrs:{id:"eq"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#eq","aria-hidden":"true"}},[e._v("#")]),e._v(" eq")]),e._v(" "),r("p",[e._v("▸ "),r("strong",[e._v("eq")]),e._v("(other?: "),r("em",[r("code",[e._v("any")])]),e._v("): "),r("code",[e._v("boolean")])]),e._v(" "),r("p",[r("em",[e._v("Implementation of "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[e._v("Codec")]),e._v("."),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html#eq"}},[e._v("eq")])],1)]),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#eq"}},[e._v("eq")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L163",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:163"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": Compares the value of the input to see if there is a match")]),e._v(" "),r("p",[r("strong",[e._v("Parameters:")])]),e._v(" "),r("table",[r("thead",[r("tr",[r("th",[e._v("Name")]),e._v(" "),r("th",[e._v("Type")])])]),e._v(" "),r("tbody",[r("tr",[r("td",[r("code",[e._v("Optional")]),e._v(" other")]),e._v(" "),r("td",[r("code",[e._v("any")])])])])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("boolean")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"tohex"}})]),e._v(" "),r("h2",{attrs:{id:"tohex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tohex","aria-hidden":"true"}},[e._v("#")]),e._v(" toHex")]),e._v(" "),r("p",[e._v("▸ "),r("strong",[e._v("toHex")]),e._v("(): "),r("code",[e._v("string")])]),e._v(" "),r("p",[r("em",[e._v("Implementation of "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[e._v("Codec")]),e._v("."),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html#tohex"}},[e._v("toHex")])],1)]),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#tohex"}},[e._v("toHex")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L176",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:176"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": Returns a hex string representation of the value")]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("string")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"tojson"}})]),e._v(" "),r("h2",{attrs:{id:"tojson"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tojson","aria-hidden":"true"}},[e._v("#")]),e._v(" toJSON")]),e._v(" "),r("p",[e._v("▸ "),r("strong",[e._v("toJSON")]),e._v("(): "),r("code",[e._v("any")])]),e._v(" "),r("p",[r("em",[e._v("Implementation of "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[e._v("Codec")]),e._v("."),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html#tojson"}},[e._v("toJSON")])],1)]),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#tojson"}},[e._v("toJSON")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L183",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:183"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": Converts the Object to JSON, typically used for RPC transfers")]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("any")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"tonumber"}})]),e._v(" "),r("h2",{attrs:{id:"tonumber"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tonumber","aria-hidden":"true"}},[e._v("#")]),e._v(" toNumber")]),e._v(" "),r("p",[e._v("▸ "),r("strong",[e._v("toNumber")]),e._v("(): "),r("code",[e._v("number")])]),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#tonumber"}},[e._v("toNumber")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L192",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:192"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": Returns the number representation for the value")]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("number")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"tostring"}})]),e._v(" "),r("h2",{attrs:{id:"tostring"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tostring","aria-hidden":"true"}},[e._v("#")]),e._v(" toString")]),e._v(" "),r("p",[e._v("▸ "),r("strong",[e._v("toString")]),e._v("(): "),r("code",[e._v("string")])]),e._v(" "),r("p",[r("em",[e._v("Implementation of "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[e._v("Codec")]),e._v("."),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html#tostring"}},[e._v("toString")])],1)]),e._v(" "),r("p",[r("em",[e._v("Overrides "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#tostring"}},[e._v("toString")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/Metadata/v0/Modules.ts#L196",target:"_blank",rel:"noopener noreferrer"}},[e._v("Metadata/v0/Modules.ts:196"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": Returns the string representation of the value")]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("string")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"tou8a"}})]),e._v(" "),r("h2",{attrs:{id:"tou8a"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tou8a","aria-hidden":"true"}},[e._v("#")]),e._v(" toU8a")]),e._v(" "),r("p",[e._v("▸ "),r("strong",[e._v("toU8a")]),e._v("(isBare?: "),r("em",[r("code",[e._v("undefined")]),e._v(" | "),r("code",[e._v("false")]),e._v(" | "),r("code",[e._v("true")])]),e._v("): "),r("code",[e._v("Uint8Array")])]),e._v(" "),r("p",[r("em",[e._v("Implementation of "),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html"}},[e._v("Codec")]),e._v("."),r("router-link",{attrs:{to:"/types/interfaces/_types_.codec.html#tou8a"}},[e._v("toU8a")])],1)]),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#tou8a"}},[e._v("toU8a")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L209",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:209"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("em",[r("strong",[e._v("description")])]),e._v(": Encodes the value as a Uint8Array as per the parity-codec specifications")]),e._v(" "),r("p",[r("strong",[e._v("Parameters:")])]),e._v(" "),r("table",[r("thead",[r("tr",[r("th",[e._v("Name")]),e._v(" "),r("th",[e._v("Type")]),e._v(" "),r("th",[e._v("Description")])])]),e._v(" "),r("tbody",[r("tr",[r("td",[r("code",[e._v("Optional")]),e._v(" isBare")]),e._v(" "),r("td",[r("code",[e._v("undefined")]),e._v(" | "),r("code",[e._v("false")]),e._v(" | "),r("code",[e._v("true")])]),e._v(" "),r("td",[e._v("true when the value has none of the type-specific prefixes (internal)")])])])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("Uint8Array")])]),e._v(" "),r("hr"),e._v(" "),r("p",[r("a",{attrs:{id:"with"}})]),e._v(" "),r("h2",{attrs:{id:"static-with"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#static-with","aria-hidden":"true"}},[e._v("#")]),e._v(" "),r("code",[e._v("<Static>")]),e._v(" with")]),e._v(" "),r("p",[e._v("▸ "),r("strong",[e._v("with")]),e._v("<"),r("code",[e._v("S")]),e._v(">(Types: "),r("em",[r("code",[e._v("S")])]),e._v("): "),r("code",[e._v("EnumConstructor")]),e._v("<"),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("<"),r("code",[e._v("S")]),e._v(">>")],1),e._v(" "),r("p",[r("em",[e._v("Inherited from "),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("."),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html#with"}},[e._v("with")])],1)]),e._v(" "),r("p",[r("em",[e._v("Defined in "),r("a",{attrs:{href:"https://github.com/polkadot-js/api/blob/255b495/packages/types/src/codec/EnumType.ts#L101",target:"_blank",rel:"noopener noreferrer"}},[e._v("codec/EnumType.ts:101"),r("OutboundLink")],1)])]),e._v(" "),r("p",[r("strong",[e._v("Type parameters:")])]),e._v(" "),r("h4",{attrs:{id:"s-constructordef"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#s-constructordef","aria-hidden":"true"}},[e._v("#")]),e._v(" S : "),r("router-link",{attrs:{to:"/types/modules/_types_.html#constructordef"}},[e._v("ConstructorDef")])],1),e._v(" "),r("p",[r("strong",[e._v("Parameters:")])]),e._v(" "),r("table",[r("thead",[r("tr",[r("th",[e._v("Name")]),e._v(" "),r("th",[e._v("Type")])])]),e._v(" "),r("tbody",[r("tr",[r("td",[e._v("Types")]),e._v(" "),r("td",[r("code",[e._v("S")])])])])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("code",[e._v("EnumConstructor")]),e._v("<"),r("router-link",{attrs:{to:"/types/classes/_codec_enumtype_.enumtype.html"}},[e._v("EnumType")]),e._v("<"),r("code",[e._v("S")]),e._v(">>")],1),e._v(" "),r("hr")])},[],!1,null,null,null);t.default=_.exports}}]); |