JSPM

@polkadot/types

0.45.16
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 130901
  • Score
    100M100P100Q151404F
  • License Apache-2.0

Implementation of the Parity codec

Package Exports

  • @polkadot/types
  • @polkadot/types/Metadata
  • @polkadot/types/Metadata/static
  • @polkadot/types/Metadata/v0/Modules
  • @polkadot/types/Metadata/v0/static
  • @polkadot/types/codec
  • @polkadot/types/codec/AbstractInt
  • @polkadot/types/codec/Base
  • @polkadot/types/codec/Compact
  • @polkadot/types/codec/Enum
  • @polkadot/types/codec/Option
  • @polkadot/types/codec/Struct
  • @polkadot/types/codec/Tuple
  • @polkadot/types/codec/U8a
  • @polkadot/types/codec/U8aFixed
  • @polkadot/types/codec/UInt
  • @polkadot/types/codec/Vector
  • @polkadot/types/codec/createType
  • @polkadot/types/codec/typeRegistry
  • @polkadot/types/codec/utils
  • @polkadot/types/index
  • @polkadot/types/primitive
  • @polkadot/types/primitive/Bool
  • @polkadot/types/primitive/Bytes
  • @polkadot/types/primitive/Null
  • @polkadot/types/primitive/StorageKey
  • @polkadot/types/primitive/U32
  • @polkadot/types/type/AccountIndex
  • @polkadot/types/type/Digest
  • @polkadot/types/types

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@polkadot/types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@polkadot/types

Implementation of the types and their (de-)serialisation via parity-codec.

Primitive types

There primitive types are available: [[Bool]], [[Bytes]], [[Data]], [[H160]], [[H256]], [[H512]], [[I8]], [[I16]], [[I32]], [[I64]], [[I128]], [[I256]], [[Method]], [[Moment]], [[Null]], [[StorageData]], [[StorageKey]], [[Text]], [[Type]], [[U8]], [[U16]], [[U32]], [[U64]], [[U128]], [[U256]], [[USize]]

Substrate types

These types implement specific types that are found as part of the Substrate base: [[AccountId]], [[AccountIndex]], [[Address]], [[Amount]], [[AssetOf]], [[AttestedCandidate]], [[AuthorityId]], [[Balance]], [[BalanceOf]], [[Block]], [[BlockNumber]], [[ChainProperties]], [[CodeHash]], [[Digest]], [[Event]], [[EventRecord]], [[Extrinsic]], [[Extrinsics]], [[ExtrinsicEra]], [[ExtrinsicSignature]], [[ExtrinsicStatus]], [[Gas]], [[Hash]], [[Header]], [[Health]], [[InherentOfflineReport]], [[Justification]], [[KeyValue]], [[Metadata]], [[MisbehaviorReport]], [[NewAccountOutcome]], [[Nonce]], [[Origin]], [[ParaId]], [[PendingExtrinsics]], [[Perbill]], [[Permill]], [[PrefabWasmModule]], [[PropIndex]], [[Proposal]], [[ProposalIndex]], [[ReferendumIndex]], [[ReferendumInfo]], [[RuntimeVersion]], [[Schedule]], [[SeedOf]], [[SessionKey]], [[Signature]], [[SignaturePayload]], [[SignedBlock]], [[StorageChangeSet]], [[StoredPendingChange]], [[ValidatorPrefs]], [[VestingSchedule]], [[Vote]], [[VoteIndex]], [[VoteThreshold]]

Derived types

Some types are extended from the base to provide additional information: [[HeaderExtended]], [[ReferendumInfoExtended]]

Codec types

These are the base types of the codec, typically not used directly, but rather inherited from to create specific types: [[Base]], [[Compact]], [[Enum]], [[EnumType]], [[Option]], [[Set]], [[Struct]], [[Tuple]], [[U8a]], [[U8aFixed]], [[UInt]], [[Vector]]