Bump deps (#59)

This commit is contained in:
Jaco Greeff 2019-06-21 13:08:31 +02:00 committed by GitHub
parent 4998b79a55
commit cdf5729f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 678 additions and 433 deletions

View File

@ -13,7 +13,7 @@
},
"resolutions": {
"babel-core": "^7.0.0-bridge.0",
"typescript": "^3.5.1"
"typescript": "^3.5.2"
},
"scripts": {
"build": "NODE_ENV=production polkadot-dev-build-ts",
@ -27,7 +27,7 @@
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@polkadot/dev-react": "^0.30.0-beta.13",
"@polkadot/dev-react": "^0.30.0-beta.16",
"@polkadot/ts": "^0.1.60"
}
}

View File

@ -5,9 +5,9 @@
"author": "Jaco Greeff <jacogr@gmail.com>",
"license": "Apache-2",
"dependencies": {
"@polkadot/ui-identicon": "^0.41.0-beta.6",
"@types/react-router": "^5.0.0",
"@types/react-router-dom": "^4.3.3",
"@polkadot/ui-identicon": "^0.42.0-beta.2",
"@types/react-router": "^5.0.2",
"@types/react-router-dom": "^4.3.4",
"react-router": "^5.0.1",
"react-router-dom": "^5.0.1"
}

View File

@ -8,6 +8,10 @@ import findChain from '@polkadot/extension/chains';
import fromMetadata from '@polkadot/extrinsics/fromMetadata';
import { Metadata, Method } from '@polkadot/types';
type MethodJson = {
args: { [index: string]: any }
};
type Props = {
className?: string,
genesisHash: string,
@ -30,6 +34,7 @@ function renderMethod (data: string, meta?: Metadata | null) {
Method.injectMethods(fromMetadata(meta));
const method = new Method(data);
const json = method.toJSON() as unknown as MethodJson;
return (
<>
@ -39,7 +44,7 @@ function renderMethod (data: string, meta?: Metadata | null) {
</tr>
<tr>
<td className='label'>&nbsp;</td>
<td className='data'><pre>{JSON.stringify(method.toJSON().args, null, 2)}</pre></td>
<td className='data'><pre>{JSON.stringify(json.args, null, 2)}</pre></td>
</tr>
{method.meta && (
<tr>

View File

@ -5,12 +5,12 @@
"author": "Jaco Greeff <jacogr@gmail.com>",
"license": "Apache-2",
"dependencies": {
"@polkadot/api": "^0.81.0-beta.14",
"@polkadot/api": "^0.82.0-beta.17",
"@polkadot/extension-ui": "^0.1.1-beta.27",
"@polkadot/ui-keyring": "^0.41.0-beta.6"
"@polkadot/ui-keyring": "^0.42.0-beta.2"
},
"devDependencies": {
"@polkadot/keyring": "^0.93.0-beta.5",
"@polkadot/keyring": "^0.94.0-beta.4",
"@types/chrome": "^0.0.86",
"@types/firefox-webext-browser": "^67.0.1",
"extensionizer": "^1.0.1",

1088
yarn.lock

File diff suppressed because it is too large Load Diff