tso-data-models
Advanced tools
Comparing version 1.0.27 to 1.0.28
@@ -7,6 +7,4 @@ "use strict"; | ||
function PriceReveal(revealStartTime, submission) { | ||
this.assetName = submission.assetName; | ||
this.revealExpiration = ethers_1.BigNumber.from(revealStartTime + (120 * 1000)); | ||
this.providerAddress = submission.providerAddress; | ||
this.assetAddress = submission.assetAddress; | ||
this.randomNumber = submission.randomNumber; | ||
@@ -13,0 +11,0 @@ this.submitPrice = submission.submitPrice; |
@@ -5,4 +5,2 @@ import { BigNumber } from "ethers"; | ||
epochNumber: BigNumber; | ||
assetName: string; | ||
assetAddress: string; | ||
ftsoRegistryAddress: string; | ||
@@ -14,3 +12,3 @@ providerAddress: string; | ||
submitPrice?: number; | ||
constructor(submitterAddress: string, assetName: string, assetAddress: string, epochData: OpenEpoch, submitDelay: number); | ||
constructor(submitterAddress: string, epochData: OpenEpoch, submitDelay: number); | ||
getSubmitPriceHash(): string; | ||
@@ -17,0 +15,0 @@ setSubmissionData(submissionPrice: number): void; |
@@ -6,7 +6,5 @@ "use strict"; | ||
var PriceSubmission = /** @class */ (function () { | ||
function PriceSubmission(submitterAddress, assetName, assetAddress, epochData, submitDelay) { | ||
function PriceSubmission(submitterAddress, epochData, submitDelay) { | ||
this.ftsoRegistryAddress = 'ftsoRegistryAddress'; | ||
this.assetName = assetName; | ||
this.providerAddress = submitterAddress; | ||
this.assetAddress = assetAddress; | ||
this.initializeSubmissionData(epochData, submitDelay); | ||
@@ -13,0 +11,0 @@ } |
{ | ||
"name": "tso-data-models", | ||
"version": "1.0.27", | ||
"version": "1.0.28", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -15,6 +15,4 @@ import { BigNumber, ethers } from "ethers"; | ||
constructor(revealStartTime: number, submission: PriceSubmission) { | ||
this.assetName = submission.assetName; | ||
this.revealExpiration = BigNumber.from(revealStartTime + (120 * 1000)); | ||
this.providerAddress = submission.providerAddress; | ||
this.assetAddress = submission.assetAddress; | ||
this.randomNumber = submission.randomNumber; | ||
@@ -21,0 +19,0 @@ this.submitPrice = submission.submitPrice; |
@@ -6,4 +6,2 @@ import { BigNumber, ethers } from "ethers"; | ||
epochNumber: BigNumber; | ||
assetName: string; | ||
assetAddress: string; | ||
ftsoRegistryAddress = 'ftsoRegistryAddress'; | ||
@@ -16,6 +14,4 @@ providerAddress: string; | ||
constructor(submitterAddress: string, assetName: string, assetAddress: string, epochData: OpenEpoch, submitDelay: number) { | ||
this.assetName = assetName; | ||
constructor(submitterAddress: string, epochData: OpenEpoch, submitDelay: number) { | ||
this.providerAddress = submitterAddress; | ||
this.assetAddress = assetAddress; | ||
this.initializeSubmissionData(epochData, submitDelay); | ||
@@ -22,0 +18,0 @@ } |
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
56481
831