@verified-network/verified-sdk 1.7.8 → 1.7.9

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.
@@ -23,6 +23,10 @@ export default class MarginIssueManager extends VerifiedContract {
23
23
  gasPrice: any;
24
24
  gasLimit: any;
25
25
  }): any;
26
+ getUserCollateral(party: string, currency: string, options?: {
27
+ gasPrice: any;
28
+ gasLimit: any;
29
+ }): any;
26
30
  getPool(poolId: string, options?: {
27
31
  gasPrice: any;
28
32
  gasLimit: any;
@@ -11,6 +11,7 @@ var FUNCTIONS;
11
11
  FUNCTIONS["OFFERCOLLATERAL"] = "offerCollateral";
12
12
  FUNCTIONS["SENDCOLLATERAL"] = "sendCollateral";
13
13
  FUNCTIONS["GETCOLLATERAL"] = "getCollateral";
14
+ FUNCTIONS["GETUSERCOLLATERAL"] = "getUserCollateral";
14
15
  FUNCTIONS["ONMATCH"] = "onMatch";
15
16
  FUNCTIONS["ONTRADE"] = "onTrade";
16
17
  FUNCTIONS["ONSETTLE"] = "onSettle";
@@ -57,6 +58,11 @@ class MarginIssueManager extends index_1.VerifiedContract {
57
58
  await this.validateInput(index_1.DATATYPES.STRING, poolId);
58
59
  return this.callContract(FUNCTIONS.GETCOLLATERAL, this.sanitiseInput(index_1.DATATYPES.BYTE32, poolId), currency, options);
59
60
  }
61
+ async getUserCollateral(party, currency, options) {
62
+ await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
63
+ await this.validateInput(index_1.DATATYPES.ADDRESS, party);
64
+ return this.callContract(FUNCTIONS.GETUSERCOLLATERAL, party, currency, options);
65
+ }
60
66
  async getPool(poolId, options) {
61
67
  await this.validateInput(index_1.DATATYPES.STRING, poolId);
62
68
  return this.callContract(FUNCTIONS.GETCOLLATERAL, this.sanitiseInput(index_1.DATATYPES.BYTE32, poolId), options);
@@ -327,7 +327,7 @@ const contractAddress = {
327
327
  'SecondaryIssuePoolFactory': '0x701Ca89B3fB8Bb59928cfd380F8FD5DEea432C32',
328
328
  'BalancerSecondaryIssueManager': '0x36Fd4e750A6494090af5CE809809029e512bf7BC',
329
329
  'MarginTradingPoolFactory': '0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c',
330
- 'BalancerMarginIssueManager': '0x24c27CaE88F6046f8371118635e03a5716a854A6',
330
+ 'BalancerMarginIssueManager': '0x5592FAE805138ea75c67363eD9609E6529d1Ed9A',
331
331
  'Custody': '0x7aE9f79067AB4FDc8d41B18f1e6491590ac76f9d',
332
332
  'Compound': '',
333
333
  'CASH': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "1.7.8",
3
+ "version": "1.7.9",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",