[CI Skip] 0.17.4
This commit is contained in:
+1
-1
@@ -10,5 +10,5 @@
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "0.17.3"
|
||||
"version": "0.17.4"
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "0.17.3",
|
||||
"version": "0.17.4",
|
||||
"private": true,
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-crypto",
|
||||
"version": "0.17.3",
|
||||
"version": "0.17.4",
|
||||
"description": "A collection of useful crypto utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-keyring",
|
||||
"version": "0.17.3",
|
||||
"version": "0.17.4",
|
||||
"description": "Keyring management",
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
@@ -31,8 +31,8 @@
|
||||
"test": "echo \"Tests only available from root wrapper\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^0.17.3",
|
||||
"@polkadot/util-crypto": "^0.17.3",
|
||||
"@polkadot/util": "^0.17.4",
|
||||
"@polkadot/util-crypto": "^0.17.4",
|
||||
"babel-runtime": "^6.26.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-rlp",
|
||||
"version": "0.17.3",
|
||||
"version": "0.17.4",
|
||||
"description": "RLP encoding and decoding",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -29,7 +29,7 @@
|
||||
"test": "echo \"Tests only available from root wrapper\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^0.17.3",
|
||||
"@polkadot/util": "^0.17.4",
|
||||
"babel-runtime": "^6.26.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-triehash",
|
||||
"version": "0.17.3",
|
||||
"version": "0.17.4",
|
||||
"description": "Creation of triehash values",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -29,9 +29,9 @@
|
||||
"test": "echo \"Tests only available from root wrapper\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^0.17.3",
|
||||
"@polkadot/util-crypto": "^0.17.3",
|
||||
"@polkadot/util-rlp": "^0.17.3",
|
||||
"@polkadot/util": "^0.17.4",
|
||||
"@polkadot/util-crypto": "^0.17.4",
|
||||
"@polkadot/util-rlp": "^0.17.4",
|
||||
"babel-runtime": "^6.26.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,26 @@
|
||||
|
||||
Convenience functions for values from @polkadot/api-jsonrpc
|
||||
|
||||
- [jsonrpcParam](#jsonrpcparam) Returns a string representation of the parameter name (optional) & type.
|
||||
- [jsonrpcSignature](#jsonrpcsignature) Returns a string representation of the method with inputs and outputs.
|
||||
|
||||
## jsonrpcParam
|
||||
|
||||
Returns a string representation of the parameter name (optional) & type.
|
||||
|
||||
```js
|
||||
jsonrpcParam (param: { name?: string, type: string }): string
|
||||
```
|
||||
|
||||
|
||||
Formats the name and type into a human-readable string.
|
||||
|
||||
```js
|
||||
import { jsonrpcParam } from '@polkadot/util';
|
||||
|
||||
console.log(jsonrpcParam({ name: 'dest', type: 'Address' }); // => dest: Address
|
||||
```
|
||||
|
||||
## jsonrpcSignature
|
||||
|
||||
Returns a string representation of the method with inputs and outputs.
|
||||
@@ -20,5 +38,5 @@ import { jsonrpcSignature } from '@polkadot/util';
|
||||
|
||||
console.log(jsonrpcSignature(
|
||||
'test_method', [{ name: 'dest', type: 'Address' }], { type: 'Address' }
|
||||
)); // => test_method (destination: Address): Address
|
||||
)); // => test_method (dest: Address): Address
|
||||
```
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util",
|
||||
"version": "0.17.3",
|
||||
"version": "0.17.4",
|
||||
"description": "A collection of useful utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
|
||||
Reference in New Issue
Block a user