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

@zerochain/0chain

Package Overview
Dependencies
Maintainers
5
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zerochain/0chain - npm Package Compare versions

Comparing version 1.3.34 to 1.3.35

40

index.js

@@ -164,7 +164,12 @@ /*

clusterName = config.clusterName;
proxyServerUrl = config.proxyServerUrl
preferredBlobbers = config.preferredBlobbers
readPrice = config.readPrice
writePrice = config.writePrice
tokenLock = config.tokenLock
proxyServerUrl = config.proxyServerUrl;
preferredBlobbers = config.preferredBlobbers;
readPriceRange = config.readPrice;
writePriceRange = config.writePrice;
tokenLock = config.tokenLock;
dataShards = config.dataShards;
parityShards = config.parityShards;
allocationSize = config.allocationSize;
tokenLock = config.tokenLock;
maxChallengeCompletionTime = config.maxChallengeCompletionTime
version = "0.8.0";

@@ -187,3 +192,3 @@ },

responseObj = { ...responseObj, fucetToken: response }
return this.allocateStorage(responseObj.activeWallet, 6, 3, 2147483648, 5000000000, new Date(), null);
return this.allocateStorage(responseObj.activeWallet, dataShards, parityShards, allocationSize, tokenLock);
})

@@ -367,8 +372,11 @@ .then((response) => {

ae,
data_shards = 2,
parity_shards = 2,
size = 2147483648,
data_shards = dataShards,
parity_shards = parityShards,
size = allocationSize,
lockTokens = tokenLock,
preferred_blobbers = null,
writePrice = writePriceRange,
readPrice = readPriceRange,
max_challenge_completion_time = maxChallengeCompletionTime,
expiration_date = new Date(),
preferred_blobbers = null
) {

@@ -387,12 +395,12 @@

input: {
data_shards: data_shards,
parity_shards: parity_shards,
data_shards,
parity_shards,
owner_id: ae.id,
owner_public_key: ae.public_key,
size: size,
expiration_date: expiration_date,
size,
expiration_date,
read_price_range: readPrice,
write_price_range: writePrice,
max_challenge_completion_time: 3600000000000,
preferred_blobbers: preferred_blobbers,
max_challenge_completion_time,
preferred_blobbers,
},

@@ -399,0 +407,0 @@ };

2

package.json
{
"name": "@zerochain/0chain",
"version": "1.3.34",
"version": "1.3.35",
"description": "js client library to interact with 0chain Blockchain",

@@ -5,0 +5,0 @@ "main": "index.js",

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