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

to
0.17.1

consensus.js

38

index.js

@@ -6,27 +6,27 @@ "use strict";

// of the ISC license. See the LICENSE file for details.
const bnToU8a = require('@polkadot/util/bn/toU8a');
const consensus = require('./consensus');
const expandMethods = require('./methods'); // NOTE: Order here is important, counts as an index
const council = require('./council');
const councilVoting = require('./councilVoting');
const BASIC_KEYS = ['consensus', 'session', 'staking', 'timestamp', 'treasury', 'democracy', 'council', 'councilVoting'];
const democracy = require('./democracy');
module.exports = function init(baseMap) {
return BASIC_KEYS.reduce((extrinsics, name, sectionIndex) => {
const section = baseMap[name];
const session = require('./session');
if (section) {
const description = section.description;
const index = bnToU8a(sectionIndex, 8);
extrinsics[name] = {
description,
index,
name,
private: expandMethods(section.private, name, index),
public: expandMethods(section.public, name, index)
};
}
const staking = require('./staking');
return extrinsics;
}, {});
const timestamp = require('./timestamp');
const treasury = require('./treasury');
module.exports = {
consensus: consensus('consensus', 0),
session: session('session', 1),
staking: staking('staking', 2),
timestamp: timestamp('timestamp', 3),
treasury: treasury('treasury', 4),
democracy: democracy('democracy', 5),
council: council('council', 6),
councilVoting: councilVoting('councilVoting', 7)
};
{
"name": "@polkadot/extrinsics",
"version": "0.16.15",
"version": "0.17.1",
"main": "index.js",

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

"@babel/runtime": "^7.0.0-beta.47",
"@polkadot/params": "^0.16.15",
"@polkadot/primitives": "^0.16.15",
"@polkadot/params": "^0.17.1",
"@polkadot/primitives": "^0.17.1",
"@polkadot/util": "^0.22.2"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet