@verified-network/verified-sdk 1.8.8 → 1.9.0

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.
@@ -7,7 +7,7 @@ export default class MarginIssueManager extends VerifiedContract {
7
7
  gasPrice: any;
8
8
  gasLimit: any;
9
9
  }): any;
10
- close(security: string, options?: {
10
+ close(security: string, currency: string, options?: {
11
11
  gasPrice: any;
12
12
  gasLimit: any;
13
13
  }): any;
@@ -37,9 +37,10 @@ class MarginIssueManager extends index_1.VerifiedContract {
37
37
  await this.validateInput(index_1.DATATYPES.NUMBER, tradeFee);
38
38
  return this.callContract(FUNCTIONS.ISSUEPRODUCT, security, this.sanitiseInput(index_1.DATATYPES.BYTE32, securityType), currency, this.sanitiseInput(index_1.DATATYPES.BYTE32, cficode), securityAmount, minOrderSize, currencyAmount, margin, collateral, tradeFee, options);
39
39
  }
40
- async close(security, options) {
40
+ async close(security, currency, options) {
41
41
  await this.validateInput(index_1.DATATYPES.ADDRESS, security);
42
- return this.callContract(FUNCTIONS.CLOSE, security, options);
42
+ await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
43
+ return this.callContract(FUNCTIONS.CLOSE, security, currency, options);
43
44
  }
44
45
  async offerCollateral(currency, amount, security, options) {
45
46
  await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
@@ -260,7 +260,7 @@ const contractAddress = {
260
260
  'BalancerSecondaryIssueManager': '',
261
261
  'MarginTradingPoolFactory': '',
262
262
  'BalancerMarginIssueManager': '',
263
- 'Custody': '0x69C61a08b46fdd75D6f000CCf2b85618AC7011a5',
263
+ 'Custody': '0xd942BF5772Ccd05B0a0a2a29D060bFA82FF4a031',
264
264
  'Compound': '0x146144772fF3fF3124beF9730a4c6F5D15efe931',
265
265
  'CASH': {
266
266
  'VCUSD': '0x1C751BA898D01789af51A9022b7A6f45836a5d6c',
@@ -325,9 +325,9 @@ const contractAddress = {
325
325
  'PrimaryIssuePoolFactory': '0xDA13BC71FEe08FfD523f10458B0e2c2D8427BBD5',
326
326
  'BalancerPrimaryIssueManager': '0x272e50Bc0BEb0CE47Cf3e509b90f561F3B54E9B5',
327
327
  'SecondaryIssuePoolFactory': '0x4519148Cc4030c2e3573f1f886ed4071Fa35d62B',
328
- 'BalancerSecondaryIssueManager': '0x955706f85511cc1133529191227B5ad2D55D0280',
328
+ 'BalancerSecondaryIssueManager': '0xFc61fB705599d59B1F7A2ad7cc35D2aBe862b1ca',
329
329
  'MarginTradingPoolFactory': '0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c',
330
- 'BalancerMarginIssueManager': '0x5592FAE805138ea75c67363eD9609E6529d1Ed9A',
330
+ 'BalancerMarginIssueManager': '0x6391Cd93045634b5f47a2D15f886dFf81b731319',
331
331
  'Custody': '0x7aE9f79067AB4FDc8d41B18f1e6491590ac76f9d',
332
332
  'Compound': '0x8c364b06741C9fE045E0e510A39BCbAf7445D8fD',
333
333
  'CASH': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "1.8.8",
3
+ "version": "1.9.0",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",