Files
api/docs/type-storage
Chevdor 0981a30d84 Add documentation and examples (#145)
* Add documentation

* Justification u8a decoding and json encoding (#146)

* Decode Justifications

* Json encoding for justifications

* Bump deps

* Allow extrinsic length encoding to operate on u8a[] (#148)

* Fix config and move generated doc to a subfolder

* Cleanup extrinsic encoding (#150)

* Cleanup extrinsic encoding

* Removed now-defunct type

* Add uncheckedLength encoding

* Add examples

* Ignore package-lock since we use yarn

* Cleanup examples

* Add gitbook config and some base files for the doc

* Do not make full doc mandatory for now

* Add contributing guide, polish doc and samples

* Update the deps of all samples and add yarn scripts
Fix and regenerate the doc

* Fix Contributing guide
2018-09-15 09:11:56 +02:00
..

polkadotjs isc style npm travis maintainability coverage dependency devDependency

@polkadot/storage

An base interface to the storage layer

Index

Type aliases

Functions


Type aliases

Keygen

Ƭ Keygen: function

Defined in key/index.ts:14

Type declaration

▸(...keyParams: Array<Storage$Key$Value>): Uint8Array

Parameters:

Param Type
Rest keyParams Array<Storage$Key$Value>

Returns: Uint8Array


Storage$Key$Value

Ƭ Storage$Key$Value: * number | BN | Uint8Array | string *

Defined in types.d.ts:8


Storage$Sections

Ƭ Storage$Sections: keyof Storages

Defined in types.d.ts:23


Storages

Ƭ Storages: object

Defined in types.d.ts:10

Type declaration


Functions

bindKey

▸ bindKey<T>(__namedParameters: object): Keygen

Defined in key/index.ts:16

Type parameters:

T

Parameters:

Param Type
__namedParameters object

Returns: Keygen


formatParams

▸ formatParams(params: Params, values?: Storage$Key$Value[]): Array<Uint8Array>

Defined in key/params.ts:15

Parameters:

Param Type Default value
params Params -
Default value values Storage$Key$Value[] []

Returns: Array<Uint8Array>