New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/extrinsics

Package Overview
Dependencies
Maintainers
1
Versions
741
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/extrinsics - npm Package Compare versions

Comparing version 0.13.10 to 0.14.1

30

index.js

@@ -1,26 +0,26 @@

'use strict';
"use strict";
var bnToU8a = require('@polkadot/util/bn/toU8a'); // Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const bnToU8a = require('@polkadot/util/bn/toU8a');
const expandMethods = require('./methods'); // NOTE: Order here is important, counts as an index
var expandMethods = require('./methods');
// NOTE: Order here is important, counts as an index
var BASIC_KEYS = ['consensus', 'session', 'staking', 'timestamp', 'treasury', 'democracy', 'council', 'councilVoting'];
const BASIC_KEYS = ['consensus', 'session', 'staking', 'timestamp', 'treasury', 'democracy', 'council', 'councilVoting'];
module.exports = function init(baseMap) {
return BASIC_KEYS.reduce(function (extrinsics, name, sectionIndex) {
var section = baseMap[name];
return BASIC_KEYS.reduce((extrinsics, name, sectionIndex) => {
const section = baseMap[name];
if (section) {
var description = section.description,
methods = section.methods;
var index = bnToU8a(sectionIndex, 8);
const {
description,
methods
} = section;
const index = bnToU8a(sectionIndex, 8);
extrinsics[name] = {
description: description,
index: index,
description,
index,
methods: {

@@ -30,3 +30,3 @@ private: expandMethods(methods.private, name, index),

},
name: name
name
};

@@ -33,0 +33,0 @@ }

@@ -1,35 +0,33 @@

'use strict';
"use strict";
var _keys = require('babel-runtime/core-js/object/keys');
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _keys2 = _interopRequireDefault(_keys);
var _keys = _interopRequireDefault(require("@babel/runtime/core-js/object/keys"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
require("core-js/modules/es6.array.sort");
var bnToU8a = require('@polkadot/util/bn/toU8a'); // Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const bnToU8a = require('@polkadot/util/bn/toU8a');
const u8aConcat = require('@polkadot/util/u8a/concat');
var u8aConcat = require('@polkadot/util/u8a/concat');
module.exports = function expandMethods(methods, sectionName, sectionIndex) {
return (0, _keys2.default)(methods).sort().reduce(function (result, name) {
var _methods$name = methods[name],
description = _methods$name.description,
index = _methods$name.index,
params = _methods$name.params;
return (0, _keys.default)(methods).sort().reduce((result, name) => {
const {
description,
index,
params
} = methods[name];
result[name] = {
description: description,
description,
index: u8aConcat(sectionIndex, bnToU8a(index, 8)),
name: name,
params: params,
name,
params,
section: sectionName,
type: []
};
return result;
}, {});
};
{
"name": "@polkadot/extrinsics",
"version": "0.13.10",
"version": "0.14.1",
"main": "index.js",

@@ -14,7 +14,7 @@ "repository": "https://github.com/polkadot-js/apps.git",

"dependencies": {
"@polkadot/params": "^0.13.10",
"@polkadot/primitives": "^0.13.10",
"@polkadot/util": "^0.19.7",
"babel-runtime": "^6.26.0"
"@babel/runtime": "^7.0.0-beta.47",
"@polkadot/params": "^0.14.1",
"@polkadot/primitives": "^0.14.1",
"@polkadot/util": "^0.20.3"
}
}

@@ -1,1 +0,1 @@

'use strict';
"use strict";
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc