Explicit deps & bumps (#1835)

* Explicit deps & bumps

* Update CHANGELOG.md
This commit is contained in:
Jaco Greeff
2020-02-12 16:33:57 +01:00
committed by GitHub
parent ac1ae34e37
commit beddc3e0a5
12 changed files with 750 additions and 391 deletions
+1
View File
@@ -5,6 +5,7 @@
- Add support for `system.account` for balance & nonce queries in derives (Substrate composites)
- Add `BitVec` type primitive
- Updated types for Polkadot parachains
- `registry.findMetaError` now can take in a `DispatchErrorModule` object for lookups
# 1.1.1
+4 -5
View File
@@ -8,7 +8,6 @@
"packages/*"
],
"resolutions": {
"babel-core": "^7.0.0-bridge.0",
"typescript": "^3.7.5"
},
"scripts": {
@@ -26,10 +25,10 @@
"test:watch": "jest --coverage --watch"
},
"devDependencies": {
"@babel/core": "^7.8.3",
"@babel/core": "^7.8.4",
"@babel/register": "^7.8.3",
"@babel/runtime": "^7.8.3",
"@polkadot/dev": "^0.33.5",
"@polkadot/ts": "^0.2.1"
"@babel/runtime": "^7.8.4",
"@polkadot/dev": "^0.34.1",
"@polkadot/ts": "^0.2.2"
}
}
+4 -2
View File
@@ -26,7 +26,9 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.8.3",
"@polkadot/types": "^1.2.0-beta.9"
"@babel/runtime": "^7.8.4",
"@polkadot/types": "^1.2.0-beta.9",
"bn.js": "^5.1.1",
"rxjs": "^6.5.4"
}
}
+5 -3
View File
@@ -27,11 +27,13 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.8.3",
"@babel/runtime": "^7.8.4",
"@polkadot/api": "^1.2.0-beta.9",
"@polkadot/types": "^1.2.0-beta.9"
"@polkadot/types": "^1.2.0-beta.9",
"bn.js": "^5.1.1",
"rxjs": "^6.5.4"
},
"devDependencies": {
"@polkadot/keyring": "^2.2.1"
"@polkadot/keyring": "^2.3.0-beta.0"
}
}
+6 -4
View File
@@ -26,16 +26,18 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.8.3",
"@babel/runtime": "^7.8.4",
"@polkadot/api-derive": "^1.2.0-beta.9",
"@polkadot/keyring": "^2.2.1",
"@polkadot/keyring": "^2.3.0-beta.0",
"@polkadot/metadata": "^1.2.0-beta.9",
"@polkadot/rpc-core": "^1.2.0-beta.9",
"@polkadot/rpc-provider": "^1.2.0-beta.9",
"@polkadot/types": "^1.2.0-beta.9",
"@polkadot/util-crypto": "^2.2.1"
"@polkadot/util-crypto": "^2.3.0-beta.0",
"bn.js": "^5.1.1",
"rxjs": "^6.5.4"
},
"devDependencies": {
"@polkadot/keyring": "^2.2.1"
"@polkadot/keyring": "^2.3.0-beta.0"
}
}
+5 -4
View File
@@ -26,12 +26,13 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
"dependencies": {
"@babel/runtime": "^7.8.3",
"@babel/runtime": "^7.8.4",
"@polkadot/types": "^1.2.0-beta.9",
"@polkadot/util": "^2.2.1",
"@polkadot/util-crypto": "^2.2.1"
"@polkadot/util": "^2.3.0-beta.0",
"@polkadot/util-crypto": "^2.3.0-beta.0",
"bn.js": "^5.1.1"
},
"devDependencies": {
"@polkadot/keyring": "^2.2.1"
"@polkadot/keyring": "^2.3.0-beta.0"
}
}
+2 -2
View File
@@ -26,11 +26,11 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.8.3",
"@babel/runtime": "^7.8.4",
"@polkadot/jsonrpc": "^1.2.0-beta.9",
"@polkadot/rpc-provider": "^1.2.0-beta.9",
"@polkadot/types": "^1.2.0-beta.9",
"@polkadot/util": "^2.2.1",
"@polkadot/util": "^2.3.0-beta.0",
"rxjs": "^6.5.4"
}
}
+6 -5
View File
@@ -26,17 +26,18 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.8.3",
"@babel/runtime": "^7.8.4",
"@polkadot/metadata": "^1.2.0-beta.9",
"@polkadot/util": "^2.2.1",
"@polkadot/util-crypto": "^2.2.1",
"@polkadot/util": "^2.3.0-beta.0",
"@polkadot/util-crypto": "^2.3.0-beta.0",
"bn.js": "^5.1.1",
"eventemitter3": "^4.0.0",
"isomorphic-fetch": "^2.2.1",
"websocket": "^1.0.31"
},
"devDependencies": {
"@polkadot/keyring": "^2.2.1",
"@polkadot/keyring": "^2.3.0-beta.0",
"mock-socket": "^9.0.3",
"nock": "^11.7.2"
"nock": "^11.8.2"
}
}
+1 -1
View File
@@ -26,6 +26,6 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-jsonrpc#readme",
"dependencies": {
"@babel/runtime": "^7.8.3"
"@babel/runtime": "^7.8.4"
}
}
+7 -5
View File
@@ -30,16 +30,18 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.8.3",
"@babel/runtime": "^7.8.4",
"@polkadot/metadata": "^1.2.0-beta.9",
"@polkadot/util": "^2.2.1",
"@polkadot/util-crypto": "^2.2.1",
"@polkadot/util": "^2.3.0-beta.0",
"@polkadot/util-crypto": "^2.3.0-beta.0",
"bn.js": "^5.1.1",
"memoizee": "^0.4.14",
"rxjs": "^6.5.4",
"yargs": "^15.1.0"
},
"devDependencies": {
"@polkadot/keyring": "^2.2.1",
"@polkadot/keyring": "^2.3.0-beta.0",
"@types/memoizee": "^0.4.3",
"@types/yargs": "^15.0.2"
"@types/yargs": "^15.0.3"
}
}
+9 -4
View File
@@ -3,10 +3,11 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { DispatchErrorModule } from '../../interfaces/types';
import { CallFunction, Codec, Constructor, InterfaceTypes, RegistryError, RegistryTypes, Registry, RegistryMetadata, TypeDef } from '../../types';
import extrinsicsFromMeta from '@polkadot/metadata/Decorated/extrinsics/fromMetadata';
import { assert, isFunction, isString, isUndefined, stringCamelCase, u8aToHex } from '@polkadot/util';
import { assert, isFunction, isString, isU8a, isUndefined, stringCamelCase, u8aToHex } from '@polkadot/util';
import Raw from '../Raw';
import { EventData } from '../../primitive/Generic/Event';
@@ -25,7 +26,7 @@ function decorateErrors (_: Registry, metadata: RegistryMetadata, metadataErrors
const eventIndex = new Uint8Array([sectionIndex, index]);
metadataErrors[u8aToHex(eventIndex)] = {
documentation: documentation.map((doc): string => doc.toString()),
documentation: documentation.map((d): string => d.toString()),
index,
name: name.toString(),
section: sectionName
@@ -113,8 +114,12 @@ export class TypeRegistry implements Registry {
return fn;
}
public findMetaError (errorIndex: Uint8Array): RegistryError {
const hexIndex = u8aToHex(errorIndex);
public findMetaError (errorIndex: Uint8Array | DispatchErrorModule): RegistryError {
const hexIndex = u8aToHex(
isU8a(errorIndex)
? errorIndex
: new Uint8Array([errorIndex.index.toNumber(), errorIndex.error.toNumber()])
);
const error = this._metadataErrors[hexIndex];
assert(!isUndefined(error), `findMetaError: Unable to find Error with index ${hexIndex}/[${errorIndex}]`);
+700 -356
View File
File diff suppressed because it is too large Load Diff