Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tso-data-models

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tso-data-models - npm Package Compare versions

Comparing version 1.0.137 to 1.0.138

1

lib/models/epoch/AssetSubmission.d.ts

@@ -9,2 +9,3 @@ import { BigNumber } from "ethers";

constructor(epochNumber: number, assetName: string, assetIndex: number, price: number);
getRandomInt(): number;
saveObject(): Record<string, any>;

@@ -11,0 +12,0 @@ getSubmitPriceHash(tsoAddress: string): string;

@@ -16,4 +16,9 @@ "use strict";

this.price = ethers_1.BigNumber.from(initialFormat);
this.random = Math.floor(Math.random());
this.random = this.getRandomInt();
}
AssetSubmission.prototype.getRandomInt = function () {
var min = Math.ceil(1);
var max = Math.floor(1000000);
return Math.floor(Math.random() * (max - min));
};
AssetSubmission.prototype.saveObject = function () {

@@ -20,0 +25,0 @@ return (0, class_transformer_1.classToPlain)(this);

2

package.json
{
"name": "tso-data-models",
"version": "1.0.137",
"version": "1.0.138",
"description": "",

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

@@ -22,7 +22,14 @@ import { BigNumber, ethers } from "ethers";

}
this.price = BigNumber.from(initialFormat);
this.random = Math.floor(Math.random());
this.random = this.getRandomInt();
}
getRandomInt() {
let min = Math.ceil(1);
let max = Math.floor(1000000);
return Math.floor(Math.random() * (max - min));
}
saveObject(): Record<string, any> {

@@ -29,0 +36,0 @@ return classToPlain(this);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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