@verified-network/verified-sdk 2.7.0 → 2.7.3

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.
@@ -805,6 +805,24 @@
805
805
  "stateMutability": "nonpayable",
806
806
  "type": "function"
807
807
  },
808
+ {
809
+ "inputs": [
810
+ {
811
+ "internalType": "uint256",
812
+ "name": "_amount",
813
+ "type": "uint256"
814
+ },
815
+ {
816
+ "internalType": "address",
817
+ "name": "_token",
818
+ "type": "address"
819
+ }
820
+ ],
821
+ "name": "returnStake",
822
+ "outputs": [],
823
+ "stateMutability": "nonpayable",
824
+ "type": "function"
825
+ },
808
826
  {
809
827
  "inputs": [
810
828
  {
@@ -57,4 +57,5 @@ export default class PrimaryIssueManager extends VerifiedContract {
57
57
  accept(poolid: string, investor: string, amnt: string, asset: string, options?: Options): any;
58
58
  reject(poolid: string, investor: string, options?: Options): any;
59
59
  settle(poolId: string, options?: Options): any;
60
+ returnStake(amount: string, token: string, options?: Options): any;
60
61
  }
@@ -19,6 +19,7 @@ var FUNCTIONS;
19
19
  FUNCTIONS["REJECT"] = "reject";
20
20
  FUNCTIONS["SETTLE"] = "settle";
21
21
  FUNCTIONS["SETISSUINGFEE"] = "setIssuingFee";
22
+ FUNCTIONS["RETURNSTAKE"] = "returnStake";
22
23
  })(FUNCTIONS || (FUNCTIONS = {}));
23
24
  class PrimaryIssueManager extends index_1.VerifiedContract {
24
25
  constructor(signer, platformAddress, platform) {
@@ -137,5 +138,10 @@ class PrimaryIssueManager extends index_1.VerifiedContract {
137
138
  await this.validateInput(index_1.DATATYPES.STRING, poolId);
138
139
  return this.callContract(FUNCTIONS.SETTLE, poolId, options);
139
140
  }
141
+ async returnStake(amount, token, options) {
142
+ await this.validateInput(index_1.DATATYPES.ADDRESS, token);
143
+ await this.validateInput(index_1.DATATYPES.NUMBER, amount);
144
+ return this.callContract(FUNCTIONS.RETURNSTAKE, amount, token, options);
145
+ }
140
146
  }
141
147
  exports.default = PrimaryIssueManager;
@@ -21,6 +21,11 @@ export default class LiquidityContract extends VerifiedContract {
21
21
  @param _token token that is supported for investment
22
22
  */
23
23
  checkSupportForToken(_token: string, options?: Options): any;
24
+ /**
25
+ Sets distribution contract to receive distribution of returns from
26
+ @param _distributionContract address of distribution contract
27
+ */
28
+ setDistribution(_distributionContract: string, options?: Options): any;
24
29
  /**
25
30
  Checks NAV for Verified Liquidity token
26
31
  */
@@ -11,6 +11,7 @@ var FUNCTIONS;
11
11
  FUNCTIONS["CHECKSUPPORTFORTOKEN"] = "checkSupportForToken";
12
12
  FUNCTIONS["GETSUPPORTEDTOKENS"] = "getSupportedTokens";
13
13
  FUNCTIONS["REGISTERPLATFORM"] = "registerPlatform";
14
+ FUNCTIONS["SETDISTRIBUTION"] = "setDistribution";
14
15
  FUNCTIONS["BUY"] = "buy";
15
16
  FUNCTIONS["GETINVESTORS"] = "getInvestors";
16
17
  FUNCTIONS["GETINVESTMENT"] = "getInvestment";
@@ -54,6 +55,14 @@ class LiquidityContract extends index_1.VerifiedContract {
54
55
  await this.validateInput(index_1.DATATYPES.ADDRESS, _token);
55
56
  return this.callContract(FUNCTIONS.CHECKSUPPORTFORTOKEN, _token, options);
56
57
  }
58
+ /**
59
+ Sets distribution contract to receive distribution of returns from
60
+ @param _distributionContract address of distribution contract
61
+ */
62
+ async setDistribution(_distributionContract, options) {
63
+ await this.validateInput(index_1.DATATYPES.ADDRESS, _distributionContract);
64
+ return this.callContract(FUNCTIONS.SETDISTRIBUTION, _distributionContract, options);
65
+ }
57
66
  /**
58
67
  Checks NAV for Verified Liquidity token
59
68
  */
@@ -56,9 +56,9 @@ const contractAddress = {
56
56
  BalancerMarginIssueManager: "",
57
57
  Custody: "",
58
58
  Compound: "",
59
- HedgeVault: "0x4746DD1D30F76a16866EcE1774fd2eE025988D4b",
60
- Keeper: "0xDD9C034348f619e85e15cbAf0f86d698b8a5b765",
61
- HedgeOracle: "0x06abba52d38C75D40Ae677a4aA30500c52A89063",
59
+ HedgeVault: "0x9e3171ed30C27fFE694b5B44E99c1cCEFe4Fb85d",
60
+ Keeper: "0x385C84e3012BB0221Fcf2D666B854BAA0969F021",
61
+ HedgeOracle: "0xd234d2433a877465cbdF6B478bfC027dB7910b0b",
62
62
  CASH: {
63
63
  VCUSD: "",
64
64
  VCEUR: "",
@@ -325,14 +325,14 @@ const contractAddress = {
325
325
  Security: "0x8C5026eF10861adBdbBbc540401dE4D453769fCE",
326
326
  SecuritiesFactory: "0xA6220cDbE81a8BA3BF4eb8b2648A7557cD2b2Ff4",
327
327
  Vitta: "0x39b4B94eE7FC9571723DaCbA14531EAC5Fd6E024",
328
- Liquidity: "0xDFCaBCDD54e8E17f93261868DD24a2829148FF90",
329
- Distribution: "0x9b164eD1dF8Ca8eC5b7753eA945347e0871E53Af",
328
+ Liquidity: "0x51E2a896c8090cf5F69eEeb8c8e4880EF2Eb582A",
329
+ Distribution: "0xA1320C8f52C5629f45Eb7AB3654216a9852DCA70",
330
330
  PrimaryIssuePoolFactory: "0xDA13BC71FEe08FfD523f10458B0e2c2D8427BBD5",
331
- BalancerPrimaryIssueManager: "0xbC2F6922e4498BB0acaAf5a856AC3D96f1fC3bB7",
331
+ BalancerPrimaryIssueManager: "0x7C19cadfB0F28C8fDa1BD79794F3640592FE1A4B",
332
332
  SecondaryIssuePoolFactory: "0x4519148Cc4030c2e3573f1f886ed4071Fa35d62B",
333
- BalancerSecondaryIssueManager: "0x2EE617cdF5314CE0660F1fEe6d6097c271600e56",
333
+ BalancerSecondaryIssueManager: "0x97916DC10489A3bf153E526D13F8A6CCA0330E2A",
334
334
  MarginTradingPoolFactory: "0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c",
335
- BalancerMarginIssueManager: "0xA7Bf49cF2C0f011719953297Ab027da0C88A559a",
335
+ BalancerMarginIssueManager: "0x0b73545A61665d87A2d637657a88ed9121758F8B",
336
336
  Custody: "0x594DC49A7C2B4b0f279247239cb6F1d943a99e7F",
337
337
  Compound: "0x4b3CBDB8FBe5fcdDF796cd42d3749f8AcD53DA73",
338
338
  CASH: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "2.7.0",
3
+ "version": "2.7.3",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",