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

@harmony-js/staking

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmony-js/staking - npm Package Compare versions

Comparing version 0.1.56 to 0.1.58

dist/index.cjs.js

12

package.json
{
"name": "@harmony-js/staking",
"version": "0.1.56",
"version": "0.1.58",
"description": "staking transaction package for harmony",

@@ -21,9 +21,9 @@ "main": "dist/index.js",

"dependencies": {
"@harmony-js/crypto": "0.1.56",
"@harmony-js/network": "0.1.56",
"@harmony-js/transaction": "0.1.56",
"@harmony-js/utils": "0.1.56",
"@harmony-js/crypto": "0.1.58",
"@harmony-js/network": "0.1.58",
"@harmony-js/transaction": "0.1.58",
"@harmony-js/utils": "0.1.58",
"text-encoding": "^0.7.0"
},
"gitHead": "8f8e17fdaed394af1c28cd133d6018bf48915a81"
"gitHead": "5eddd0feb2bfe92c36b194fe0a9ffe40f8173d6c"
}

@@ -321,12 +321,8 @@ /**

const testTx: any = testTransactions[0];
const responses = [
{
jsonrpc: '2.0',
id: 1,
result: testTx.nonce,
},
].map((res) => [JSON.stringify(res)] as [string]);
fetch.mockResponse(JSON.stringify({
jsonrpc: '2.0',
id: 1,
result: testTx.nonce,
}));
fetch.mockResponses(...responses);
const desc: Description = new Description(

@@ -367,12 +363,8 @@ testTx.description.name,

const testTx: any = testTransactions[1];
const responses = [
{
jsonrpc: '2.0',
id: 1,
result: testTx.nonce,
},
].map((res) => [JSON.stringify(res)] as [string]);
fetch.mockResponse(JSON.stringify({
jsonrpc: '2.0',
id: 1,
result: testTx.nonce,
}));
fetch.mockResponses(...responses);
const desc: Description = new Description(

@@ -408,12 +400,8 @@ testTx.description.name,

const testTx: any = testTransactions[2];
const responses = [
{
jsonrpc: '2.0',
id: 1,
result: testTx.nonce,
},
].map((res) => [JSON.stringify(res)] as [string]);
fetch.mockResponse(JSON.stringify({
jsonrpc: '2.0',
id: 1,
result: testTx.nonce,
}));
fetch.mockResponses(...responses);
const stakeMsg: Delegate = new Delegate(

@@ -440,11 +428,7 @@ testTx.delegatorAddress,

const responses = [
{
jsonrpc: '2.0',
id: 1,
result: testTx.nonce,
},
].map((res) => [JSON.stringify(res)] as [string]);
fetch.mockResponses(...responses);
fetch.mockResponse(JSON.stringify({
jsonrpc: '2.0',
id: 1,
result: testTx.nonce,
}));
const stakeMsg: Undelegate = new Undelegate(

@@ -473,12 +457,8 @@ testTx.delegatorAddress,

const testTx: any = testTransactions[4];
const responses = [
{
jsonrpc: '2.0',
id: 1,
result: testTx.nonce,
},
].map((res) => [JSON.stringify(res)] as [string]);
fetch.mockResponse(JSON.stringify({
jsonrpc: '2.0',
id: 1,
result: testTx.nonce,
}));
fetch.mockResponses(...responses);
const stakeMsg: CollectRewards = new CollectRewards(testTx.delegatorAddress);

@@ -485,0 +465,0 @@

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