@verified-network/verified-sdk 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,7 +31,7 @@ export default class MarginIssueManager extends VerifiedContract {
31
31
  gasPrice: any;
32
32
  gasLimit: any;
33
33
  }): any;
34
- onSettle(security: string, currency: string, financingBid: string, financingOffer: string, dividendBid: string, dividendOffer: string, swapLong: string, swapShort: string, options?: {
34
+ onSettle(security: string, currency: string, financingBid: string, financingOffer: string, dividendBid: string, dividendOffer: string, swapLong: string, swapShort: string, settlementTime: string, options?: {
35
35
  gasPrice: any;
36
36
  gasLimit: any;
37
37
  }): any;
@@ -94,7 +94,7 @@ class MarginIssueManager extends index_1.VerifiedContract {
94
94
  await this.validateInput(DATATYPES.NUMBER, settlementTime);
95
95
  return this.callContract(FUNCTIONS.ONSETTLE, security, currency, financingPerSec, charge, dividendPerSec, payout, settlementTime, options);
96
96
  }*/
97
- async onSettle(security, currency, financingBid, financingOffer, dividendBid, dividendOffer, swapLong, swapShort, options) {
97
+ async onSettle(security, currency, financingBid, financingOffer, dividendBid, dividendOffer, swapLong, swapShort, settlementTime, options) {
98
98
  await this.validateInput(index_1.DATATYPES.ADDRESS, security);
99
99
  await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
100
100
  await this.validateInput(index_1.DATATYPES.NUMBER, financingBid);
@@ -103,7 +103,8 @@ class MarginIssueManager extends index_1.VerifiedContract {
103
103
  await this.validateInput(index_1.DATATYPES.NUMBER, dividendOffer);
104
104
  await this.validateInput(index_1.DATATYPES.NUMBER, swapLong);
105
105
  await this.validateInput(index_1.DATATYPES.NUMBER, swapShort);
106
- return this.callContract(FUNCTIONS.ONSETTLE, security, currency, financingBid, financingOffer, dividendBid, dividendOffer, swapLong, swapShort, options);
106
+ await this.validateInput(index_1.DATATYPES.NUMBER, settlementTime);
107
+ return this.callContract(FUNCTIONS.ONSETTLE, security, currency, financingBid, financingOffer, dividendBid, dividendOffer, swapLong, swapShort, settlementTime, options);
107
108
  }
108
109
  async withdraw(security, currency, amount, options) {
109
110
  await this.validateInput(index_1.DATATYPES.ADDRESS, security);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",