* API formatting for inputs & outputs * Shorten naming * getStorage (signle key) operational * Remove api-format (not used in api anymore) * Cleanup creation logic * Cleanup linting * Cleanup storage creation * e2e state test * Add code test * Add isBare flag to toU8a * Uppercase... wtill wrong though * Update metadata json * We are creating keys properly * Cleanup tslint * Type splitting,m handling Tuple & Vector * StorageChangeSet results in-place * Update deps * Allow Tuples to have array constructors * Test for uncloded vec/tuple * Update deps
@polkadot/primitives
Base flow definitions for the base Polkadot types as defined in the specification. It is useful for implementations, applications and libraries, where type-checking of the JavaScript base types is of importance.
Usage
Installation -
npm install --save @polkadot/primitives
Usage -
// @flow
import type { AccountId, Balance } from '@polkadot/primitives/base';
function getBalance (accountId: AccountId): Balance {
...
}