@polkadot/params
Advanced tools
Comparing version 0.16.15 to 0.17.1
@@ -10,3 +10,3 @@ "use strict"; | ||
// of the ISC license. See the LICENSE file for details. | ||
const extrinsics = require('@polkadot/extrinsics-substrate'); | ||
const extrinsics = require('@polkadot/extrinsics'); | ||
@@ -39,3 +39,3 @@ module.exports = function call(decode, input, isPublic) { | ||
const params = (0, _keys.default)(methods[method].params).map(name => methods[method].params[name]); | ||
const params = methods[method].params; | ||
const result = { | ||
@@ -42,0 +42,0 @@ length: 2, |
{ | ||
"name": "@polkadot/params", | ||
"version": "0.16.15", | ||
"version": "0.17.1", | ||
"description": "Type defintions for parameters as passed in calls", | ||
@@ -33,7 +33,6 @@ "main": "index.js", | ||
"@babel/runtime": "^7.0.0-beta.47", | ||
"@polkadot/extrinsics": "^0.16.15", | ||
"@polkadot/extrinsics-substrate": "^0.16.15", | ||
"@polkadot/primitives": "^0.16.15", | ||
"@polkadot/extrinsics": "^0.17.1", | ||
"@polkadot/primitives": "^0.17.1", | ||
"@polkadot/util": "^0.22.2" | ||
} | ||
} |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _keys = _interopRequireDefault(require("@babel/runtime/core-js/object/keys")); | ||
// Copyright 2017-2018 Jaco Greeff | ||
@@ -20,3 +16,3 @@ // This software may be modified and distributed under the terms | ||
console.log(signature({ name: 'test_method', params: { dest: { type: 'Address' }}, type: 'Address' })); // => test_method (dest: Address): Address | ||
console.log(signature({ name: 'test_method', params: [ { name: 'dest', type: 'Address' } ], type: 'Address' })); // => test_method (dest: Address): Address | ||
*/ | ||
@@ -30,4 +26,7 @@ | ||
}) { | ||
const inputs = (0, _keys.default)(params).map(name => `${name}: ${typeToString(params[name].type)}`).join(', '); | ||
const inputs = params.map(({ | ||
name, | ||
type | ||
}) => `${name}: ${typeToString(type)}`).join(', '); | ||
return `${name} (${inputs}): ${typeToString(type)}`; | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
36443
4
47
432
+ Added@polkadot/extrinsics@0.17.28(transitive)
+ Added@polkadot/extrinsics-codec@0.17.28(transitive)
+ Added@polkadot/params@0.17.28(transitive)
+ Added@polkadot/primitives@0.17.28(transitive)
+ Added@polkadot/util-crypto@0.22.11(transitive)
+ Added@polkadot/util-keyring@0.22.11(transitive)
+ Addedbase-x@3.0.10(transitive)
+ Addedblakejs@1.2.1(transitive)
+ Addedbs58@4.0.1(transitive)
+ Addedcuint@0.2.2(transitive)
+ Addedjs-sha3@0.7.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedtweetnacl@1.0.3(transitive)
+ Addedxxhashjs@0.2.2(transitive)
- Removed@polkadot/extrinsics@0.16.15(transitive)
- Removed@polkadot/extrinsics-substrate@0.16.15(transitive)
- Removed@polkadot/primitives@0.16.15(transitive)
Updated@polkadot/extrinsics@^0.17.1
Updated@polkadot/primitives@^0.17.1