name: RuntimeVersionApi

description: A Tuple that conatins the ApiId and U32 version

Hierarchy

↳ Tuple

↳ RuntimeVersionApi

Implements

Indexable

[n: number]: Codec

Constructors

constructor

⊕ new RuntimeVersionApi(value?: RuntimeVersionApiValue | Uint8Array): RuntimeVersionApi

Overrides Tuple.constructor

Defined in RuntimeVersion.ts:35

Parameters:

Name Type
Optional value RuntimeVersionApiValue Uint8Array

Returns: RuntimeVersionApi


Accessors

Types

getTypes(): Array<string>

Inherited from Tuple.Types

Defined in codec/Tuple.ts:68

description: The types definition of the tuple

Returns: Array<string>


encodedLength

getencodedLength(): number

Inherited from Tuple.encodedLength

Defined in codec/Tuple.ts:59

description: The length of the value when encoded as a Uint8Array

Returns: number


id

getid(): ApiId

Defined in RuntimeVersion.ts:46

description: The ApiId

Returns: ApiId


version

getversion(): U32

Defined in RuntimeVersion.ts:53

description: The specific version as U32

Returns: U32


Methods

eq

▸ eq(other?: any): boolean

Implementation of Codec.eq

Inherited from Tuple.eq

Defined in codec/Tuple.ts:77

description: Compares the value of the input to see if there is a match

Parameters:

Name Type
Optional other any

Returns: boolean


filter

▸ filter(callbackfn: function, thisArg?: any): Array<Codec>

Inherited from Tuple.filter

Overrides Array.filter

Defined in codec/Tuple.ts:133

description: Filters the array with the callback

Parameters:

Name Type Description
callbackfn function The filter function
Optional thisArg any The `this` object to apply the result to

Returns: Array<Codec>


map

▸ map<U>(callbackfn: function, thisArg?: any): Array<U>

Inherited from Tuple.map

Overrides Array.map

Defined in codec/Tuple.ts:142

description: Maps the array with the callback

Type parameters:

U

Parameters:

Name Type Description
callbackfn function The mapping function
Optional thisArg any The `this` onject to apply the result to

Returns: Array<U>


toArray

▸ toArray(): Array<Codec>

Inherited from Tuple.toArray

Defined in codec/Tuple.ts:84

description: Converts the Object to an standard JavaScript Array

Returns: Array<Codec>


toHex

▸ toHex(): string

Implementation of Codec.toHex

Inherited from Tuple.toHex

Defined in codec/Tuple.ts:91

description: Returns a hex string representation of the value

Returns: string


toJSON

▸ toJSON(): any

Implementation of Codec.toJSON

Inherited from Tuple.toJSON

Defined in codec/Tuple.ts:98

description: Converts the Object to JSON, typically used for RPC transfers

Returns: any


toString

▸ toString(): string

Implementation of Codec.toString

Inherited from Tuple.toString

Overrides Array.toString

Defined in codec/Tuple.ts:107

description: Returns the string representation of the value

Returns: string


toU8a

▸ toU8a(isBare?: undefined | false | true): Uint8Array

Implementation of Codec.toU8a

Inherited from Tuple.toU8a

Defined in codec/Tuple.ts:116

description: Encodes the value as a Uint8Array as per the parity-codec specifications

Parameters:

Name Type Description
Optional isBare undefined false true true when the value has none of the type-specific prefixes (internal)

Returns: Uint8Array


<Static> with

▸ with(Types: TupleConstructors): Constructor<Tuple>

Inherited from Tuple.with

Defined in codec/Tuple.ts:48

Parameters:

Name Type
Types TupleConstructors

Returns: Constructor<Tuple>


results matching ""

    No results matching ""