@verified-network/verified-sdk 1.7.3 → 1.7.5

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
+ getPool(poolId: string, options?: {
27
+ gasPrice: any;
28
+ gasLimit: any;
29
+ }): any;
26
30
  onMatch(party: string, counterparty: string, orderRef: string, security: string, securityTraded: string, currency: string, cashTraded: string, options?: {
27
31
  gasPrice: any;
28
32
  gasLimit: any;
@@ -15,6 +15,7 @@ var FUNCTIONS;
15
15
  FUNCTIONS["ONTRADE"] = "onTrade";
16
16
  FUNCTIONS["ONSETTLE"] = "onSettle";
17
17
  FUNCTIONS["WITHDRAW"] = "withdraw";
18
+ FUNCTIONS["GETPOOL"] = "getPool";
18
19
  })(FUNCTIONS || (FUNCTIONS = {}));
19
20
  class MarginIssueManager extends index_1.VerifiedContract {
20
21
  constructor(signer, contractNetworkAddress) {
@@ -56,6 +57,10 @@ class MarginIssueManager extends index_1.VerifiedContract {
56
57
  await this.validateInput(index_1.DATATYPES.STRING, poolId);
57
58
  return this.callContract(FUNCTIONS.GETCOLLATERAL, this.sanitiseInput(index_1.DATATYPES.BYTE32, poolId), currency, options);
58
59
  }
60
+ async getPool(poolId, options) {
61
+ await this.validateInput(index_1.DATATYPES.STRING, poolId);
62
+ return this.callContract(FUNCTIONS.GETCOLLATERAL, this.sanitiseInput(index_1.DATATYPES.BYTE32, poolId), options);
63
+ }
59
64
  async onMatch(party, counterparty, orderRef, security, securityTraded, currency, cashTraded, options) {
60
65
  await this.validateInput(index_1.DATATYPES.ADDRESS, party);
61
66
  await this.validateInput(index_1.DATATYPES.ADDRESS, counterparty);
@@ -150,11 +150,11 @@ const contractAddress = {
150
150
  'Vitta': '',
151
151
  'Liquidity': '',
152
152
  'Distribution': '',
153
- 'PrimaryIssuePoolFactory': '',
153
+ 'PrimaryIssuePoolFactory': '0xBD5A0178C276d1553Eb388AdA03F6Cb79Eb6F67D',
154
154
  'BalancerPrimaryIssueManager': '',
155
- 'SecondaryIssuePoolFactory': '',
155
+ 'SecondaryIssuePoolFactory': '0xdd9b8B18A5b3418E805B8B81200727387b121DE3',
156
156
  'BalancerSecondaryIssueManager': '',
157
- 'MarginTradingPoolFactory': '',
157
+ 'MarginTradingPoolFactory': '0x1B95D408DE85e07d0De5d5b545202E32a023772E',
158
158
  'BalancerMarginIssueManager': '',
159
159
  'Custody': '',
160
160
  'Compound': '',
@@ -221,8 +221,8 @@ const contractAddress = {
221
221
  'Distribution': '0x3C0Da71292F095182b06e2f3c1527E2DF6aEa583',
222
222
  'PrimaryIssuePoolFactory': '0x73465Be532Aa390728D3Bb75D0b16F936Cd56bBE',
223
223
  'BalancerPrimaryIssueManager': '',
224
- 'SecondaryIssuePoolFactory': '0xD0c101dd9B26B579D95d311dbaaF6CBCF0B55DeE',
225
- 'BalancerSecondaryIssueManager': '0xa3A28abB39434Fc903f2646071BBD253318e9FAc',
224
+ 'SecondaryIssuePoolFactory': '0x5b8bc9986A44c1814603Ba7C66C5e2eC332262c5',
225
+ 'BalancerSecondaryIssueManager': '0x532629896968b80386998865202ed36178eE6e01',
226
226
  'MarginTradingPoolFactory': '0xb864e62CFebd368F4491Fe52A4Fcc22c1c525F1C',
227
227
  'BalancerMarginIssueManager': '',
228
228
  'Custody': '',
@@ -323,11 +323,11 @@ const contractAddress = {
323
323
  'Liquidity': '0x27006b68b3594EF5Ae04C5457c24F0c7CF1E5553',
324
324
  'Distribution': '0x5c3171AFEC854f8B6FD138ee9533629ABd8A5365',
325
325
  'PrimaryIssuePoolFactory': '0xDA13BC71FEe08FfD523f10458B0e2c2D8427BBD5',
326
- 'BalancerPrimaryIssueManager': '0x5209fc3f8f5A28E9a77bfd18056d8B8429397600',
327
- 'SecondaryIssuePoolFactory': '0xde763208aB2279435D0e6AA4297d25164873Fe82',
328
- 'BalancerSecondaryIssueManager': '0x32464AC66668824E6d1261472F085045354B2CBa',
326
+ 'BalancerPrimaryIssueManager': '0x7A41C71E69b890Cb96cc04AAbBf61954DbE7E9c6',
327
+ 'SecondaryIssuePoolFactory': '0xCB1a06d714225fE560eE1e754eb53B22C807FC1d',
328
+ 'BalancerSecondaryIssueManager': '0xC0872152A98eF535aD6BA4Ad4b865B69d3F87176',
329
329
  'MarginTradingPoolFactory': '0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c',
330
- 'BalancerMarginIssueManager': '0x53F20058A93364689C70d2CBf4057F507e32e000',
330
+ 'BalancerMarginIssueManager': '0x9bBc920e485Fe8C6787A737514792ab30aA6E5C5',
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.3",
3
+ "version": "1.7.5",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",