@verified-network/verified-sdk 1.1.9 → 1.2.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.
@@ -42,11 +42,10 @@ class LiquidityContract extends index_1.VerifiedContract {
42
42
  @param _cap investment limit for each investor
43
43
  @param _limit time limit for issue close
44
44
  */
45
- async createSupply(_supply, _cap, _limit, options) {
46
- await this.validateInput(index_1.DATATYPES.NUMBER, _supply);
45
+ async createSupply(_cap, _limit, options) {
47
46
  await this.validateInput(index_1.DATATYPES.NUMBER, _cap);
48
47
  await this.validateInput(index_1.DATATYPES.NUMBER, _limit);
49
- return this.callContract(FUNCTIONS.CREATESUPPLY, _supply, _cap, _limit, options);
48
+ return this.callContract(FUNCTIONS.CREATESUPPLY, _cap, _limit, options);
50
49
  }
51
50
  /**
52
51
  Specifies list of supported tokens that can be invested in the Verified Liquidity token
@@ -106,26 +105,26 @@ class LiquidityContract extends index_1.VerifiedContract {
106
105
  /**
107
106
  Fetches investment detail for specific investor in VITTA
108
107
  @param _investor address of investor
109
- @param _tokenName name of token invested by investor
108
+ @param _token address of token invested by investor
110
109
  */
111
- async getInvestment(_investor, _tokenName, options) {
110
+ async getInvestment(_investor, _token, options) {
112
111
  await this.validateInput(index_1.DATATYPES.ADDRESS, _investor);
113
- await this.validateInput(index_1.DATATYPES.STRING, _tokenName);
114
- return this.callContract(FUNCTIONS.GETINVESTMENT, _investor, _tokenName, options);
112
+ await this.validateInput(index_1.DATATYPES.ADDRESS, _token);
113
+ return this.callContract(FUNCTIONS.GETINVESTMENT, _investor, _token, options);
115
114
  }
116
115
  /**
117
116
  Used by Issuers (eg, asset managers) to issue VITTA to investors or refund paid in tokens to investors if investment cap is breached
118
117
  @param _investor address of investor
119
- @param _tokenName name of token invested in VITTA
118
+ @param _token address of token invested in VITTA
120
119
  @param _tokenAmount amount of token invested in VITTA
121
120
  @param _LPToIssue amount of VITTA to issue to investor
122
121
  */
123
- async issue(_investor, _tokenName, _tokenAmount, _LPToIssue, options) {
122
+ async issue(_investor, _token, _tokenAmount, _LPToIssue, options) {
124
123
  await this.validateInput(index_1.DATATYPES.ADDRESS, _investor);
125
- await this.validateInput(index_1.DATATYPES.STRING, _tokenName);
124
+ await this.validateInput(index_1.DATATYPES.ADDRESS, _token);
126
125
  await this.validateInput(index_1.DATATYPES.NUMBER, _tokenAmount);
127
126
  await this.validateInput(index_1.DATATYPES.NUMBER, _LPToIssue);
128
- return this.callContract(FUNCTIONS.ISSUE, _investor, _tokenName, _tokenAmount, _LPToIssue, options);
127
+ return this.callContract(FUNCTIONS.ISSUE, _investor, _token, _tokenAmount, _LPToIssue, options);
129
128
  }
130
129
  /**
131
130
  Used by VITTA holder to stake it for providing liquidity for underwriting investments
@@ -11,12 +11,12 @@ const contractAddress = {
11
11
  'Rates': '0xC805B6D74d17c9DD2dA508AbeA90a1b9bCC2344c',
12
12
  'Security': '0x93527FaeCD88c108C3Fb78a1Ca72536eeb1Adbf7',
13
13
  'SecuritiesFactory': '0x647a7EA364a31fa18c65f4043CD55718d245D774',
14
- 'Vitta': '0x59604Ea9dB9cED0dF8Ee6a0A1608D2C843279513',
15
- 'Liquidity': '0x607Cc758CdA603cE3Ef4a9D1E75847ce7F3F43e7',
16
- 'Distribution': '0x67DA962AA27eAe1573afeFD0d7BbE8E6eb971F6c',
17
- 'BalancerPrimaryIssueManager': '0xa7dc43957cdD9FF23ef885f3fEe6d4C397c44f5C',
18
- 'BalancerSecondaryIssueManager': '0xD51243d49Fc5Cbf66f0173E75cF5Bd48878BF84b',
19
- 'BalancerMarginIssueManager': '0xd740080360eF21f6Afeee7fca01117CD8E0b01b7',
14
+ 'Vitta': '0xb9E8c18B3163a1720B6B36f452e99Ead943dB974',
15
+ 'Liquidity': '0x61441Be13Dc0da64974cf90e644f568e9E3757f8',
16
+ 'Distribution': '0x2786feeBEd13DbD472253B926f243d62275d2570',
17
+ 'BalancerPrimaryIssueManager': '0x0404c5b557DDC732A2A1a75784D32aCBDBdAD710',
18
+ 'BalancerSecondaryIssueManager': '0xE83c4B5D24eF12E90bbc6534F2B2d2592128Afd9',
19
+ 'BalancerMarginIssueManager': '0x00447fDc95EEB16A1A1b0eD1d9c53C7adFAf7c76',
20
20
  'Custody': '0x60aEDad13a34b1DC45bDeA9eD6a66d639563e917',
21
21
  'CASH': {
22
22
  'VCUSD': '0xcd9e67b873Cf50eeb1Dc08b95a29782a5f108f1A',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "1.1.9",
3
+ "version": "1.2.0",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",