@verified-network/verified-sdk 0.7.3 → 0.7.4

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.
@@ -25,6 +25,7 @@ var FUNCTIONS;
25
25
  FUNCTIONS["GETPLATFORMPERFORMANCE"] = "getPlatformPerformance";
26
26
  FUNCTIONS["GETMANAGERPERFORMANCE"] = "getManagerPerformance";
27
27
  FUNCTIONS["PROVIDELIQUIDITY"] = "provideLiquidity";
28
+ FUNCTIONS["BALANCE"] = "balance";
28
29
  })(FUNCTIONS || (FUNCTIONS = {}));
29
30
  class LiquidityContract extends index_1.VerifiedContract {
30
31
  constructor(signer) {
@@ -225,5 +226,15 @@ class LiquidityContract extends index_1.VerifiedContract {
225
226
  await this.validateInput(index_1.DATATYPES.NUMBER, _liquidity);
226
227
  return this.callContract(FUNCTIONS.PROVIDELIQUIDITY, _platform, _manager, _liquidity, options);
227
228
  }
229
+ /**
230
+ * Fetches balance of investor
231
+ * @param _investor address of investor
232
+ * @param options
233
+ * @returns balance of investor
234
+ */
235
+ async balanceOf(_investor, options) {
236
+ await this.validateInput(index_1.DATATYPES.ADDRESS, _investor);
237
+ return this.callContract(FUNCTIONS.BALANCE, _investor, options);
238
+ }
228
239
  }
229
240
  exports.default = LiquidityContract;
@@ -24,10 +24,10 @@ const contractAddress = {
24
24
  'Products': '0x86A3e6C8cfb8C01Ba75E529ac96Fd987c6bCAB6F',
25
25
  'Stocks': '0x5dFF251d787AC24e7490f90B308820bea5b2f762',
26
26
  'Bonds': '0x36604775A217F561B7a2d86725f96473B54f6b60',
27
- 'Liquidity': '0xf1C46203D7066aA623ce5045AeD197B7DFD59d40',
28
- 'Distribution': '0xD8c6EF6E9644F6a0fF3f075E89EB06ADC83073DE',
29
- 'BalancerManager': '0x372293b68C81E8aCfd4FF7C8232e3F549a8fb9Ba',
30
- 'PrimaryIssuePoolFactory': '0xFE80F9e555003775B30ecABEF5A0b28dCd27e041',
27
+ 'Liquidity': '0x38465490aE03b2641D0497baf1F2CfeE3adB33a0',
28
+ 'Distribution': '0xBBb9035864A25573Ad1f7FF7B8774218d347543F',
29
+ 'BalancerManager': '0x8D1684395dd25D4FD4888f98AbDdAc09C655aAc9',
30
+ 'PrimaryIssuePoolFactory': '0x5840e24E56309c6e4F2Ea9a79e7a41314c46AE2b',
31
31
  'Custody': '',
32
32
  'CASH': {
33
33
  'VCUSD': '0x0D5b968e84308ef57c4FfA5ce7EEFF8AdD6B9f66',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",