tso-data-models
Advanced tools
Comparing version 1.0.120 to 1.0.121
@@ -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 @@ } |
@@ -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); |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146655
2172