Socket
Socket
Sign inDemoInstall

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.120 to 1.0.121

5

lib/models/epoch/AssetSubmission.js

@@ -13,3 +13,5 @@ "use strict";

this.random = Math.floor(Math.random() * 100000);
console.log('ffff ');
this.formatPrice();
console.log('ggg ');
}

@@ -23,2 +25,3 @@ AssetSubmission.prototype.saveObject = function () {

AssetSubmission.prototype.formatPrice = function () {
console.log('111 ');
var str = this.price.toString();

@@ -28,4 +31,6 @@ var numArray = str.split('.');

var afterDecimal = numArray[1];
console.log('3333 ');
var rightSide;
if (afterDecimal.length > 5) {
console.log('666 ');
rightSide = afterDecimal.substring(0, 5);

@@ -32,0 +37,0 @@ }

2

lib/models/epoch/EpochSubmission.js

@@ -64,3 +64,5 @@ "use strict";

var ftso = listOfFTSOs[i];
console.log('FTS ', ftso);
var sub = listOfPrices[i];
console.log('sub ', sub);
var hash = sub.getSubmitPriceHash(providerAddress);

@@ -67,0 +69,0 @@ this.listOfHashes.push(hash);

2

package.json
{
"name": "tso-data-models",
"version": "1.0.120",
"version": "1.0.121",
"description": "",

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

@@ -20,3 +20,5 @@ import { BigNumber, ethers } from "ethers";

this.random = Math.floor(Math.random() * 100000);
console.log('ffff ')
this.formatPrice();
console.log('ggg ')
}

@@ -32,2 +34,3 @@

formatPrice() {
console.log('111 ')
const str = this.price.toString();

@@ -37,4 +40,6 @@ const numArray = str.split('.');

const afterDecimal = numArray[1];
console.log('3333 ')
let rightSide;
if (afterDecimal.length > 5) {
console.log('666 ')
rightSide = afterDecimal.substring(0, 5);

@@ -41,0 +46,0 @@ } else if (afterDecimal.length < 5) {

@@ -43,3 +43,5 @@ import { BigNumber, ethers } from "ethers";

const ftso = listOfFTSOs[i];
console.log('FTS ', ftso)
const sub: AssetSubmission = listOfPrices[i];
console.log('sub ', sub)
const hash = sub.getSubmitPriceHash(providerAddress);

@@ -46,0 +48,0 @@ this.listOfHashes.push(hash);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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