Bump metadata (#1354)

* Bump metadata

* Update for metadata constants
This commit is contained in:
Jaco Greeff
2019-09-02 07:39:12 +02:00
committed by GitHub
parent 08f6b14701
commit 096aa83dd7
12 changed files with 47 additions and 45 deletions
+1 -1
View File
@@ -33,7 +33,7 @@
"@babel/register": "^7.5.5",
"@babel/runtime": "^7.5.5",
"@polkadot/dev": "^0.31.0-beta.6",
"@polkadot/ts": "^0.1.69",
"@polkadot/ts": "^0.1.70",
"gh-pages": "^2.1.1"
}
}
+1 -1
View File
@@ -32,6 +32,6 @@
"@polkadot/types": "^0.91.0-beta.11"
},
"devDependencies": {
"@polkadot/keyring": "^1.2.0-beta.3"
"@polkadot/keyring": "^1.2.0-beta.6"
}
}
+3 -3
View File
@@ -28,10 +28,10 @@
"dependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/types": "^0.91.0-beta.11",
"@polkadot/util": "^1.2.0-beta.3",
"@polkadot/util-crypto": "^1.2.0-beta.3"
"@polkadot/util": "^1.2.0-beta.6",
"@polkadot/util-crypto": "^1.2.0-beta.6"
},
"devDependencies": {
"@polkadot/keyring": "^1.2.0-beta.3"
"@polkadot/keyring": "^1.2.0-beta.6"
}
}
@@ -16,6 +16,6 @@ const consts = fromMetadata(metadata);
describe('fromMetadata', (): void => {
it('should return constants with the correct type and value', (): void => {
expect(consts.democracy.cooloffPeriod).toBeInstanceOf(ClassOf('BlockNumber'));
expect(consts.democracy.cooloffPeriod.toHex()).toEqual('0x00062700');
expect(consts.democracy.cooloffPeriod.toHex()).toEqual('0x000c4e00');
});
});
+2 -2
View File
@@ -32,9 +32,9 @@
"@polkadot/rpc-core": "^0.91.0-beta.11",
"@polkadot/rpc-provider": "^0.91.0-beta.11",
"@polkadot/types": "^0.91.0-beta.11",
"@polkadot/util-crypto": "^1.2.0-beta.3"
"@polkadot/util-crypto": "^1.2.0-beta.6"
},
"devDependencies": {
"@polkadot/keyring": "^1.2.0-beta.3"
"@polkadot/keyring": "^1.2.0-beta.6"
}
}
+1 -1
View File
@@ -30,7 +30,7 @@
"@polkadot/jsonrpc": "^0.91.0-beta.11",
"@polkadot/rpc-provider": "^0.91.0-beta.11",
"@polkadot/types": "^0.91.0-beta.11",
"@polkadot/util": "^1.2.0-beta.3",
"@polkadot/util": "^1.2.0-beta.6",
"rxjs": "^6.5.2"
}
}
+3 -3
View File
@@ -28,15 +28,15 @@
"dependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/api-metadata": "^0.91.0-beta.11",
"@polkadot/util": "^1.2.0-beta.3",
"@polkadot/util-crypto": "^1.2.0-beta.3",
"@polkadot/util": "^1.2.0-beta.6",
"@polkadot/util-crypto": "^1.2.0-beta.6",
"@types/nock": "^10.0.3",
"eventemitter3": "^4.0.0",
"isomorphic-fetch": "^2.2.1",
"websocket": "^1.0.29"
},
"devDependencies": {
"@polkadot/keyring": "^1.2.0-beta.3",
"@polkadot/keyring": "^1.2.0-beta.6",
"mock-socket": "^9.0.0",
"nock": "^10.0.4"
}
+3 -3
View File
@@ -27,12 +27,12 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/util": "^1.2.0-beta.3",
"@polkadot/util-crypto": "^1.2.0-beta.3",
"@polkadot/util": "^1.2.0-beta.6",
"@polkadot/util-crypto": "^1.2.0-beta.6",
"@types/memoizee": "^0.4.2",
"memoizee": "^0.4.14"
},
"devDependencies": {
"@polkadot/keyring": "^1.2.0-beta.3"
"@polkadot/keyring": "^1.2.0-beta.6"
}
}
@@ -471,7 +471,7 @@
{
"name": "EpochDuration",
"type": "u64",
"value": "0x6400000000000000",
"value": "0xc800000000000000",
"documentation": [
" The number of **slots** that an epoch takes. We couple sessions to",
" epochs, i.e. we start a new session once the new epoch begins."
@@ -480,7 +480,7 @@
{
"name": "ExpectedBlockTime",
"type": "Moment",
"value": "0x7017000000000000",
"value": "0xb80b000000000000",
"documentation": [
" The expected average block time at which BABE should be creating",
" blocks. Since BABE is probabilistic it is not trivial to figure out",
@@ -547,7 +547,7 @@
{
"name": "MinimumPeriod",
"type": "Moment",
"value": "0xb80b000000000000",
"value": "0xdc05000000000000",
"documentation": [
" The minimum period between blocks. Beware that this is different to the *expected* period",
" that the block production apparatus provides. Your chosen consensus system will generally",
@@ -2262,7 +2262,7 @@
{
"name": "EnactmentPeriod",
"type": "BlockNumber",
"value": "0x80970600",
"value": "0x002f0d00",
"documentation": [
" The minimum period of locking and the period between a proposal being approved and enacted.",
"",
@@ -2274,7 +2274,7 @@
{
"name": "LaunchPeriod",
"type": "BlockNumber",
"value": "0x00270600",
"value": "0x004e0c00",
"documentation": [
" How often (in blocks) new public referenda are launched."
]
@@ -2282,7 +2282,7 @@
{
"name": "VotingPeriod",
"type": "BlockNumber",
"value": "0x00270600",
"value": "0x004e0c00",
"documentation": [
" How often (in blocks) to check for new votes."
]
@@ -2298,7 +2298,7 @@
{
"name": "EmergencyVotingPeriod",
"type": "BlockNumber",
"value": "0xc0a80000",
"value": "0x80510100",
"documentation": [
" Minimum voting period allowed for an emergency referendum."
]
@@ -2306,7 +2306,7 @@
{
"name": "CooloffPeriod",
"type": "BlockNumber",
"value": "0x00270600",
"value": "0x004e0c00",
"documentation": [
" Period in blocks where an external proposal may not be re-submitted after being vetoed."
]
@@ -3289,7 +3289,7 @@
{
"name": "VotingPeriod",
"type": "BlockNumber",
"value": "0x80700000",
"value": "0x00e10000",
"documentation": [
" How often (in blocks) to check for new votes. A reasonable default value",
" is 1000."
@@ -3794,7 +3794,7 @@
{
"name": "SpendPeriod",
"type": "BlockNumber",
"value": "0x40380000",
"value": "0x80700000",
"documentation": [
" Period between successive spends."
]
@@ -4372,7 +4372,7 @@
},
{
"name": "signature",
"type": "AuthoritySignature"
"type": "Signature"
}
],
"documentation": []
File diff suppressed because one or more lines are too long
+2
View File
@@ -52,6 +52,8 @@ export default class Type extends Text {
Type._alias('session::SessionIndex', 'SessionIndex'),
// HACK duplication between contracts & primitives, however contracts prefixed with exec
Type._alias('exec::StorageKey', 'ContractStorageKey'),
// Phantom
Type._alias('rstd::marker::PhantomData', 'PhantomData'),
// flattens tuples with one value, `(AccountId)` -> `AccountId`
Type._flattenSingleTuple(),
// converts ::Type to Type, <T as Trait<I>>::Proposal -> ::Proposal
+18 -18
View File
@@ -1844,30 +1844,30 @@
typescript "^3.6.2"
vuepress "^1.0.3"
"@polkadot/keyring@^1.2.0-beta.3":
version "1.2.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-1.2.0-beta.3.tgz#94d7ab481b2d3932b1ae69f28579bbc9a6bc22a8"
integrity sha512-EZVCH/4snM+5rVc9QbD+opQ7rsuxwHf9KCE7+vHGHZKupXbbXv2KTv1X+JVK0Pnxk60vJ5e6idHpNVGZ1AjZag==
"@polkadot/keyring@^1.2.0-beta.6":
version "1.2.0-beta.6"
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-1.2.0-beta.6.tgz#353877cebd587028d5309a26d79d64fdefa4e85c"
integrity sha512-WLAGht3o/OlVICevwq5Rhld0vs2LrRKPyGtjlCLiOwsjtsFWYh5cKxkSRSkeu8UeGNWwcPeKD7At8G84bxVnmg==
dependencies:
"@babel/runtime" "^7.5.5"
"@polkadot/util" "^1.2.0-beta.3"
"@polkadot/util-crypto" "^1.2.0-beta.3"
"@polkadot/util" "^1.2.0-beta.6"
"@polkadot/util-crypto" "^1.2.0-beta.6"
"@polkadot/ts@^0.1.69":
"@polkadot/ts@^0.1.70":
version "0.1.70"
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.70.tgz#0f6462871c557fc81bf0e0542d5ac4ccd18f134c"
integrity sha512-SREHjU1WHfQeHo8/ieeQuiahHXSvZMyySdP44+G+sySgTDHK5wfOK7zJKv1dFOZBHrWcqtjCptTNMg2B9E2ysQ==
dependencies:
"@types/chrome" "^0.0.88"
"@polkadot/util-crypto@^1.2.0-beta.3":
version "1.2.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-1.2.0-beta.3.tgz#fb0df4d48e97e49f7dfd554fe99196bcf5885bff"
integrity sha512-qnlai3+s/q7JJLgcY6nxQUHL/YQx+8k8gRcilxqNlXI40Q/u1O9oYSYSFMBOKCHrXSJJkaBWVU25bMw7FO56XQ==
"@polkadot/util-crypto@^1.2.0-beta.6":
version "1.2.0-beta.6"
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-1.2.0-beta.6.tgz#f8b5a27c902146e4897376961e1b19ebbe307959"
integrity sha512-PizsGpmYf6Muu41EnJeHJ+nkxthWukHommVzfhvSS1l7cNxTwPFdDlYwnUzW4JAiL54zhNAb9cbTN+hb1Nuttw==
dependencies:
"@babel/runtime" "^7.5.5"
"@polkadot/util" "^1.2.0-beta.3"
"@polkadot/wasm-crypto" "^0.14.0-beta.1"
"@polkadot/util" "^1.2.0-beta.6"
"@polkadot/wasm-crypto" "^0.14.0-beta.3"
"@types/bip39" "^2.4.2"
"@types/bs58" "^4.0.0"
"@types/pbkdf2" "^3.0.0"
@@ -1882,10 +1882,10 @@
tweetnacl "^1.0.1"
xxhashjs "^0.2.2"
"@polkadot/util@^1.2.0-beta.3":
version "1.2.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-1.2.0-beta.3.tgz#4f88e22ef5ae31ecf937175572545c65bba66fa0"
integrity sha512-w/Sbs3Bi+rl+TcJKRNFkc9X0yFEPn2i7cH6Y43Pm05UKuMNlJKo3ilKJbGjuwYZJUDWyTqPap2pfSKraH1HDbQ==
"@polkadot/util@^1.2.0-beta.6":
version "1.2.0-beta.6"
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-1.2.0-beta.6.tgz#dc5261f0ad8b8d9fc2ff419bf4527a5f95e65544"
integrity sha512-sfHIDz9VvoL61o7tCTija4Yv7VsoEhgdpvzB4CRsPyGe8inaAhXxsgGYLlOWIrnDAxjov2X1IdDwmlMLd0lu8A==
dependencies:
"@babel/runtime" "^7.5.5"
"@types/bn.js" "^4.11.5"
@@ -1895,7 +1895,7 @@
ip-regex "^4.1.0"
moment "^2.24.0"
"@polkadot/wasm-crypto@^0.14.0-beta.1":
"@polkadot/wasm-crypto@^0.14.0-beta.3":
version "0.14.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-0.14.0-beta.3.tgz#740e576ed07e378b55e7333239da23a44d0a07f3"
integrity sha512-CbPx+ymPkE5TPDH/1cnIi7WhssIRrVY3Ira2qY9YDcc1+L3Gr3yvPvLnNnynaZ+LtYkt57jRSZtUbUgXoT98Dw==