Format submitMessage output in a usable format (#298)
* Format submitMessage output in a usable format * Bump deps
This commit is contained in:
parent
e2e1fec499
commit
fa8fff639f
@ -11,9 +11,9 @@
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/storage": "^0.28.34",
|
||||
"@polkadot/storage": "^0.28.35",
|
||||
"@polkadot/ui-react": "^0.20.3",
|
||||
"@polkadot/ui-react-rx": "^0.20.3",
|
||||
"@polkadot/util-keyring": "^0.30.2"
|
||||
"@polkadot/util-keyring": "^0.30.3"
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,9 +11,9 @@
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/storage": "^0.28.34",
|
||||
"@polkadot/storage": "^0.28.35",
|
||||
"@polkadot/ui-react": "^0.20.3",
|
||||
"@polkadot/ui-react-rx": "^0.20.3",
|
||||
"@polkadot/util-keyring": "^0.30.2"
|
||||
"@polkadot/util-keyring": "^0.30.3"
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,8 +11,8 @@
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/primitives": "^0.28.34",
|
||||
"@polkadot/primitives": "^0.28.35",
|
||||
"@polkadot/ui-app": "^0.20.3",
|
||||
"@polkadot/util-crypto": "^0.30.2"
|
||||
"@polkadot/util-crypto": "^0.30.3"
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/extrinsics": "^0.28.34",
|
||||
"@polkadot/extrinsics": "^0.28.35",
|
||||
"@polkadot/ui-app": "^0.20.3",
|
||||
"@polkadot/ui-signer": "^0.20.3"
|
||||
}
|
||||
|
||||
@ -12,11 +12,11 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/app-extrinsics": "^0.20.3",
|
||||
"@polkadot/storage": "^0.28.34",
|
||||
"@polkadot/storage": "^0.28.35",
|
||||
"@polkadot/ui-app": "^0.20.3",
|
||||
"@polkadot/ui-keyring": "^0.20.3",
|
||||
"@polkadot/ui-react": "^0.20.3",
|
||||
"@polkadot/ui-react-rx": "^0.20.3",
|
||||
"@polkadot/util-keyring": "^0.30.2"
|
||||
"@polkadot/util-keyring": "^0.30.3"
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,8 +11,8 @@
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/extrinsics": "^0.28.34",
|
||||
"@polkadot/storage": "^0.28.34",
|
||||
"@polkadot/extrinsics": "^0.28.35",
|
||||
"@polkadot/storage": "^0.28.35",
|
||||
"@polkadot/ui-keyring": "^0.20.3",
|
||||
"@polkadot/ui-react": "^0.20.3",
|
||||
"@polkadot/ui-react-rx": "^0.20.3",
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
"color": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util-crypto": "^0.30.2",
|
||||
"@polkadot/util-crypto": "^0.30.3",
|
||||
"xmlserializer": "^0.6.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/ui-react": "^0.20.3",
|
||||
"@polkadot/util-keyring": "^0.30.2",
|
||||
"@polkadot/util-keyring": "^0.30.3",
|
||||
"store": "^2.0.12"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@ -31,9 +31,9 @@
|
||||
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-react-rx#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/api-rx": "^0.28.34",
|
||||
"@polkadot/extrinsics": "^0.28.34",
|
||||
"@polkadot/storage": "^0.28.34",
|
||||
"@polkadot/api-rx": "^0.28.35",
|
||||
"@polkadot/extrinsics": "^0.28.35",
|
||||
"@polkadot/storage": "^0.28.35",
|
||||
"rxjs-compat": "^6.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
"polkadot-identicon": "^1.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util-keyring": "^0.30.2",
|
||||
"@polkadot/util-keyring": "^0.30.3",
|
||||
"empty": "^0.10.1",
|
||||
"react": "^16.5.0",
|
||||
"react-dom": "^16.5.0"
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/extrinsics": "^0.28.34",
|
||||
"@polkadot/extrinsics": "^0.28.35",
|
||||
"@polkadot/ui-app": "^0.20.3",
|
||||
"@polkadot/ui-keyring": "^0.20.3"
|
||||
},
|
||||
|
||||
@ -7,13 +7,15 @@ import { Param$Values, SectionItem } from '@polkadot/params/types';
|
||||
import { Interfaces } from '@polkadot/jsonrpc/types';
|
||||
import { QueueTx$Result } from './types';
|
||||
|
||||
import { format } from '@polkadot/util/logger';
|
||||
|
||||
export default async function submitMessage (api: RxApiInterface, params: Array<Param$Values>, { name, section }: SectionItem<Interfaces>): Promise<QueueTx$Result> {
|
||||
try {
|
||||
console.log(`submitMessage : ${section}.${name} :`, params);
|
||||
console.log(`submitMessage : ${section}.${name} :`, format(params));
|
||||
|
||||
const result = await api[section][name].apply(null, params).toPromise();
|
||||
|
||||
console.log(`${section}.${name}: result ::`, result);
|
||||
console.log(`${section}.${name}: result ::`, format(result));
|
||||
|
||||
return {
|
||||
result,
|
||||
|
||||
160
yarn.lock
160
yarn.lock
@ -1348,50 +1348,50 @@
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.0.tgz#50c1e2260ac0ed9439a181de3725a0168d59c48a"
|
||||
|
||||
"@polkadot/api-format@^0.28.34":
|
||||
version "0.28.34"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/api-format/-/api-format-0.28.34.tgz#4647c2eb4a47e93406acca2a8cfb9cd060ab7925"
|
||||
"@polkadot/api-format@^0.28.35":
|
||||
version "0.28.35"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/api-format/-/api-format-0.28.35.tgz#b0c64c8370388255ecba161e766639dbb714fa7f"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@polkadot/jsonrpc" "^0.28.34"
|
||||
"@polkadot/primitives" "^0.28.34"
|
||||
"@polkadot/util" "^0.30.2"
|
||||
"@polkadot/util-keyring" "^0.30.2"
|
||||
"@polkadot/jsonrpc" "^0.28.35"
|
||||
"@polkadot/primitives" "^0.28.35"
|
||||
"@polkadot/util" "^0.30.3"
|
||||
"@polkadot/util-keyring" "^0.30.3"
|
||||
|
||||
"@polkadot/api-provider@^0.28.34":
|
||||
version "0.28.34"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/api-provider/-/api-provider-0.28.34.tgz#144b16144f2d0a4f6b7428079eb47b4ad2602d22"
|
||||
"@polkadot/api-provider@^0.28.35":
|
||||
version "0.28.35"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/api-provider/-/api-provider-0.28.35.tgz#8e98ea6d7743a378f2dcc5487ef011a99e182dc9"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@polkadot/storage" "^0.28.34"
|
||||
"@polkadot/util" "^0.30.2"
|
||||
"@polkadot/util-crypto" "^0.30.2"
|
||||
"@polkadot/util-keyring" "^0.30.2"
|
||||
"@polkadot/storage" "^0.28.35"
|
||||
"@polkadot/util" "^0.30.3"
|
||||
"@polkadot/util-crypto" "^0.30.3"
|
||||
"@polkadot/util-keyring" "^0.30.3"
|
||||
"@types/nock" "^9.1.3"
|
||||
eventemitter3 "^3.1.0"
|
||||
isomorphic-fetch "^2.2.1"
|
||||
websocket "^1.0.25"
|
||||
|
||||
"@polkadot/api-rx@^0.28.34":
|
||||
version "0.28.34"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/api-rx/-/api-rx-0.28.34.tgz#09e254f937c40afc07c710c4bbcd64a9c5d29134"
|
||||
"@polkadot/api-rx@^0.28.35":
|
||||
version "0.28.35"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/api-rx/-/api-rx-0.28.35.tgz#f6878fb01c91a4884f4d12339cbafc508db4cf76"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@polkadot/api" "^0.28.34"
|
||||
"@polkadot/api-provider" "^0.28.34"
|
||||
"@polkadot/api" "^0.28.35"
|
||||
"@polkadot/api-provider" "^0.28.35"
|
||||
"@types/rx" "^4.1.1"
|
||||
rxjs "^6.3.2"
|
||||
|
||||
"@polkadot/api@^0.28.34":
|
||||
version "0.28.34"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.28.34.tgz#2abfa7a481074df0cbdbeba941ef098d4df3f320"
|
||||
"@polkadot/api@^0.28.35":
|
||||
version "0.28.35"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.28.35.tgz#9065fa9999e047374fa063c9135e30694b5f71eb"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@polkadot/api-format" "^0.28.34"
|
||||
"@polkadot/api-provider" "^0.28.34"
|
||||
"@polkadot/jsonrpc" "^0.28.34"
|
||||
"@polkadot/params" "^0.28.34"
|
||||
"@polkadot/util" "^0.30.2"
|
||||
"@polkadot/api-format" "^0.28.35"
|
||||
"@polkadot/api-provider" "^0.28.35"
|
||||
"@polkadot/jsonrpc" "^0.28.35"
|
||||
"@polkadot/params" "^0.28.35"
|
||||
"@polkadot/util" "^0.30.3"
|
||||
|
||||
"@polkadot/dev-react@^0.20.19":
|
||||
version "0.20.19"
|
||||
@ -1461,96 +1461,96 @@
|
||||
typedoc-plugin-markdown "^1.1.15"
|
||||
typescript "^3.0.1"
|
||||
|
||||
"@polkadot/extrinsics@^0.28.34":
|
||||
version "0.28.34"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.28.34.tgz#33b6d882ebee6eb819244315da657c787f97b563"
|
||||
"@polkadot/extrinsics@^0.28.35":
|
||||
version "0.28.35"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.28.35.tgz#4fac5d7227c4f8a15587eb1be98e55561fa55b31"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@polkadot/params" "^0.28.34"
|
||||
"@polkadot/primitives" "^0.28.34"
|
||||
"@polkadot/util" "^0.30.2"
|
||||
"@polkadot/params" "^0.28.35"
|
||||
"@polkadot/primitives" "^0.28.35"
|
||||
"@polkadot/util" "^0.30.3"
|
||||
|
||||
"@polkadot/jsonrpc@^0.28.34":
|
||||
version "0.28.34"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.28.34.tgz#aaeee0fcdb10e0677430f300ce076843be94f72c"
|
||||
"@polkadot/jsonrpc@^0.28.35":
|
||||
version "0.28.35"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.28.35.tgz#7590a63db9ccc10bac2f3ea774dd15ecf126ca01"
|
||||
dependencies:
|
||||
"@polkadot/params" "^0.28.34"
|
||||
"@polkadot/params" "^0.28.35"
|
||||
babel-runtime "^6.26.0"
|
||||
|
||||
"@polkadot/params@^0.28.34":
|
||||
version "0.28.34"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/params/-/params-0.28.34.tgz#20b5e51bc02bfbcfa5deba8d90c67b520c146df7"
|
||||
"@polkadot/params@^0.28.35":
|
||||
version "0.28.35"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/params/-/params-0.28.35.tgz#ca4f5eef76db6b8cbfb52397f24fd32fae39a620"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@polkadot/extrinsics" "^0.28.34"
|
||||
"@polkadot/params" "^0.28.34"
|
||||
"@polkadot/primitives" "^0.28.34"
|
||||
"@polkadot/util" "^0.30.2"
|
||||
"@polkadot/util-keyring" "^0.30.2"
|
||||
"@polkadot/extrinsics" "^0.28.35"
|
||||
"@polkadot/params" "^0.28.35"
|
||||
"@polkadot/primitives" "^0.28.35"
|
||||
"@polkadot/util" "^0.30.3"
|
||||
"@polkadot/util-keyring" "^0.30.3"
|
||||
|
||||
"@polkadot/primitives@^0.28.34":
|
||||
version "0.28.34"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/primitives/-/primitives-0.28.34.tgz#654560fa4a8c1b04594171f09b430543e7307cdf"
|
||||
"@polkadot/primitives@^0.28.35":
|
||||
version "0.28.35"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/primitives/-/primitives-0.28.35.tgz#12abc2003d0e4a072d1064be99540d86f0564e5f"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@polkadot/trie-hash" "^0.30.2"
|
||||
"@polkadot/util" "^0.30.2"
|
||||
"@polkadot/trie-hash" "^0.30.3"
|
||||
"@polkadot/util" "^0.30.3"
|
||||
|
||||
"@polkadot/storage@^0.28.34":
|
||||
version "0.28.34"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.28.34.tgz#aa723a366e328a3d4befeb6016fb55331f4802d1"
|
||||
"@polkadot/storage@^0.28.35":
|
||||
version "0.28.35"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.28.35.tgz#438f51a70e3c2e920e5f63962e3ed141bc1cf1e3"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@polkadot/params" "^0.28.34"
|
||||
"@polkadot/primitives" "^0.28.34"
|
||||
"@polkadot/util" "^0.30.2"
|
||||
"@polkadot/util-crypto" "^0.30.2"
|
||||
"@polkadot/util-keyring" "^0.30.2"
|
||||
"@polkadot/params" "^0.28.35"
|
||||
"@polkadot/primitives" "^0.28.35"
|
||||
"@polkadot/util" "^0.30.3"
|
||||
"@polkadot/util-crypto" "^0.30.3"
|
||||
"@polkadot/util-keyring" "^0.30.3"
|
||||
|
||||
"@polkadot/trie-hash@^0.30.2":
|
||||
version "0.30.2"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/trie-hash/-/trie-hash-0.30.2.tgz#731ef56c9a401ca6a57a05a213b16def501a3403"
|
||||
"@polkadot/trie-hash@^0.30.3":
|
||||
version "0.30.3"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/trie-hash/-/trie-hash-0.30.3.tgz#4eee3f78ff38f74e7f09ef1e41778ddb0da0f509"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@polkadot/util" "^0.30.2"
|
||||
"@polkadot/util-crypto" "^0.30.2"
|
||||
"@polkadot/util-rlp" "^0.30.2"
|
||||
"@polkadot/util" "^0.30.3"
|
||||
"@polkadot/util-crypto" "^0.30.3"
|
||||
"@polkadot/util-rlp" "^0.30.3"
|
||||
|
||||
"@polkadot/ts@^0.1.27":
|
||||
version "0.1.27"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.27.tgz#88ddd9e90f4c5c98996ecd433670839eaf530d73"
|
||||
|
||||
"@polkadot/util-crypto@^0.30.2":
|
||||
version "0.30.2"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.30.2.tgz#9804bc339f4d9b64e7b538c4537a41da1329af77"
|
||||
"@polkadot/util-crypto@^0.30.3":
|
||||
version "0.30.3"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.30.3.tgz#83f0080fe953a856acef877a5bab113c5a61ae79"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@polkadot/util" "^0.30.2"
|
||||
"@polkadot/util" "^0.30.3"
|
||||
blakejs "^1.1.0"
|
||||
js-sha3 "^0.8.0"
|
||||
tweetnacl "^1.0.0"
|
||||
xxhashjs "^0.2.2"
|
||||
|
||||
"@polkadot/util-keyring@^0.30.2":
|
||||
version "0.30.2"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util-keyring/-/util-keyring-0.30.2.tgz#f15610d54165475560633dddfe3c9240f0db9a11"
|
||||
"@polkadot/util-keyring@^0.30.3":
|
||||
version "0.30.3"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util-keyring/-/util-keyring-0.30.3.tgz#e8547f5b32caac1c79b80c3dc028108e36720251"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@polkadot/util" "^0.30.2"
|
||||
"@polkadot/util-crypto" "^0.30.2"
|
||||
"@polkadot/util" "^0.30.3"
|
||||
"@polkadot/util-crypto" "^0.30.3"
|
||||
"@types/bs58" "^3.0.30"
|
||||
bs58 "^4.0.1"
|
||||
|
||||
"@polkadot/util-rlp@^0.30.2":
|
||||
version "0.30.2"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util-rlp/-/util-rlp-0.30.2.tgz#ffb354e8291fd016a3ddc0c44d25af5eedae0f09"
|
||||
"@polkadot/util-rlp@^0.30.3":
|
||||
version "0.30.3"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util-rlp/-/util-rlp-0.30.3.tgz#a49b444425819243021bcd395e3b67fa628abfed"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@polkadot/util" "^0.30.2"
|
||||
"@polkadot/util" "^0.30.3"
|
||||
|
||||
"@polkadot/util@^0.30.2":
|
||||
version "0.30.2"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.30.2.tgz#097eb2cbd5af7fed3809323b95df99b0369f5ef3"
|
||||
"@polkadot/util@^0.30.3":
|
||||
version "0.30.3"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.30.3.tgz#c7d8ea9e527332e4a36946b7524f3b1b18b7804f"
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.0.0"
|
||||
"@types/bn.js" "^4.11.1"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user