Add Key to types, bump util for assert typeof fix (#800)

* Add Key to types, bump util for assert typeof fix

* Export default

* docs
This commit is contained in:
Jaco Greeff
2019-03-27 10:25:07 +01:00
committed by GitHub
parent 104354ae09
commit 45e524371e
11 changed files with 43 additions and 27 deletions
+1 -1
View File
@@ -36,6 +36,6 @@
"@polkadot/rpc-rx": "^0.52.0-beta.0",
"@polkadot/storage": "^0.52.0-beta.0",
"@polkadot/types": "^0.52.0-beta.0",
"@polkadot/util-crypto": "^0.42.0-beta.0"
"@polkadot/util-crypto": "^0.42.0-beta.1"
}
}
+1 -1
View File
@@ -33,6 +33,6 @@
"@polkadot/jsonrpc": "^0.52.0-beta.0",
"@polkadot/rpc-provider": "^0.52.0-beta.0",
"@polkadot/types": "^0.52.0-beta.0",
"@polkadot/util": "^0.42.0-beta.0"
"@polkadot/util": "^0.42.0-beta.1"
}
}
+3 -3
View File
@@ -30,10 +30,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.4.0",
"@polkadot/keyring": "^0.42.0-beta.0",
"@polkadot/keyring": "^0.42.0-beta.1",
"@polkadot/storage": "^0.52.0-beta.0",
"@polkadot/util": "^0.42.0-beta.0",
"@polkadot/util-crypto": "^0.42.0-beta.0",
"@polkadot/util": "^0.42.0-beta.1",
"@polkadot/util-crypto": "^0.42.0-beta.1",
"@types/nock": "^9.3.1",
"eventemitter3": "^3.1.0",
"isomorphic-fetch": "^2.2.1",
+1 -1
View File
@@ -12,6 +12,6 @@
"dependencies": {
"@babel/runtime": "^7.4.0",
"@polkadot/types": "^0.52.0-beta.0",
"@polkadot/util": "^0.42.0-beta.0"
"@polkadot/util": "^0.42.0-beta.1"
}
}
+3 -3
View File
@@ -30,9 +30,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme",
"dependencies": {
"@babel/runtime": "^7.4.0",
"@polkadot/keyring": "^0.42.0-beta.0",
"@polkadot/keyring": "^0.42.0-beta.1",
"@polkadot/types": "^0.52.0-beta.0",
"@polkadot/util": "^0.42.0-beta.0",
"@polkadot/util-crypto": "^0.42.0-beta.0"
"@polkadot/util": "^0.42.0-beta.1",
"@polkadot/util-crypto": "^0.42.0-beta.1"
}
}
+1 -1
View File
@@ -8,7 +8,7 @@ There primitive types are available: [[Bool]], [[Bytes]], [[Data]], [[H160]], [[
## Substrate types
These types implement specific types that are found as part of the Substrate base: [[AccountId]], [[AccountIndex]], [[Address]], [[Amount]], [[AssetOf]], [[AttestedCandidate]], [[AuthorityId]], [[Balance]], [[BalanceLock]], [[BalanceOf]], [[Block]], [[BlockNumber]], [[CodeHash]], [[Digest]], [[Event]], [[EventRecord]], [[Exposure]], [[Extrinsic]], [[ExtrinsicEra]], [[ExtrinsicSignature]], [[Gas]], [[Hash]], [[Header]], [[IndividualExposure]], [[InherentOfflineReport]], [[Justification]], [[KeyValue]], [[LockIdentifier]], [[MisbehaviorReport]], [[NewAccountOutcome]], [[Nonce]], [[Origin]], [[ParaId]], [[Perbill]], [[Permill]], [[PrefabWasmModule]], [[PropIndex]], [[Proposal]], [[ProposalIndex]], [[ReferendumIndex]], [[ReferendumInfo]], [[RewardDestination]], [[Schedule]], [[SeedOf]], [[SessionKey]], [[Signature]], [[SignaturePayload]], [[StakingLedger]], [[StoredPendingChange]], [[UnlockChunk]], [[ValidatorPrefs]], [[VestingSchedule]], [[Vote]], [[VoteIndex]], [[VoteThreshold]], [[WithdrawReasons]]
These types implement specific types that are found as part of the Substrate base: [[AccountId]], [[AccountIndex]], [[Address]], [[Amount]], [[AssetOf]], [[AttestedCandidate]], [[AuthorityId]], [[Balance]], [[BalanceLock]], [[BalanceOf]], [[Block]], [[BlockNumber]], [[CodeHash]], [[Digest]], [[Event]], [[EventRecord]], [[Exposure]], [[Extrinsic]], [[ExtrinsicEra]], [[ExtrinsicSignature]], [[Gas]], [[Hash]], [[Header]], [[IndividualExposure]], [[InherentOfflineReport]], [[Justification]], [[Key]], [[KeyValue]], [[LockIdentifier]], [[MisbehaviorReport]], [[NewAccountOutcome]], [[Nonce]], [[Origin]], [[ParaId]], [[Perbill]], [[Permill]], [[PrefabWasmModule]], [[PropIndex]], [[Proposal]], [[ProposalIndex]], [[ReferendumIndex]], [[ReferendumInfo]], [[RewardDestination]], [[Schedule]], [[SeedOf]], [[SessionKey]], [[Signature]], [[SignaturePayload]], [[StakingLedger]], [[StoredPendingChange]], [[UnlockChunk]], [[ValidatorPrefs]], [[VestingSchedule]], [[Vote]], [[VoteIndex]], [[VoteThreshold]], [[WithdrawReasons]]
## Codec types
+2 -2
View File
@@ -30,7 +30,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.4.0",
"@polkadot/keyring": "^0.42.0-beta.0",
"@polkadot/util": "^0.42.0-beta.0"
"@polkadot/keyring": "^0.42.0-beta.1",
"@polkadot/util": "^0.42.0-beta.1"
}
}
+14
View File
@@ -0,0 +1,14 @@
// Copyright 2017-2019 @polkadot/types authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import Bytes from '../primitive/Bytes';
/**
* @name Key
* @description
* The Substrate Key representation as a [[Bytes]] (`vec<u8>`).
*/
export default class Key extends Bytes {
}
+1
View File
@@ -37,6 +37,7 @@ export { default as Hash } from './Hash';
export { default as Header, HeaderExtended } from './Header';
export { default as IndividualExposure } from './IndividualExposure';
export { default as InherentOfflineReport } from './InherentOfflineReport';
export { default as Key } from './Key';
export { default as KeyValue } from './KeyValue';
export { default as LockIdentifier } from './LockIdentifier';
export { default as LockPeriods } from './LockPeriods';