@verified-network/verified-sdk 1.1.9 → 1.2.1
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.
- package/dist/abi/assetmanager/balancer/MarginIssueManager.json +210 -210
- package/dist/abi/assetmanager/balancer/PrimaryIssueManager.json +8234 -8513
- package/dist/abi/assetmanager/balancer/SecondaryIssueManager.json +4902 -4902
- package/dist/abi/distribution/Distribution.json +3 -3
- package/dist/abi/liquidity/Liquidity.json +13287 -14980
- package/dist/contract/liquidity/index.js +10 -11
- package/dist/contractAddress/index.js +6 -6
- package/package.json +1 -1
|
@@ -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(
|
|
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,
|
|
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
|
|
108
|
+
@param _token address of token invested by investor
|
|
110
109
|
*/
|
|
111
|
-
async getInvestment(_investor,
|
|
110
|
+
async getInvestment(_investor, _token, options) {
|
|
112
111
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _investor);
|
|
113
|
-
await this.validateInput(index_1.DATATYPES.
|
|
114
|
-
return this.callContract(FUNCTIONS.GETINVESTMENT, _investor,
|
|
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
|
|
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,
|
|
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.
|
|
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,
|
|
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': '
|
|
15
|
-
'Liquidity': '
|
|
16
|
-
'Distribution': '
|
|
17
|
-
'BalancerPrimaryIssueManager': '
|
|
18
|
-
'BalancerSecondaryIssueManager': '
|
|
19
|
-
'BalancerMarginIssueManager': '
|
|
14
|
+
'Vitta': '0x6a7c8F90AA7D36aCe167F68217efDaC37DC0992f',
|
|
15
|
+
'Liquidity': '0x9A70e2D0BC45CD9Ddb98DEc0c21ea1F01311cfd3',
|
|
16
|
+
'Distribution': '0x2a57D3805A7d27e0dFf9477930d82D2826778B96',
|
|
17
|
+
'BalancerPrimaryIssueManager': '0xC82ec00924A79b47273B87A195FaCCbf163eE309',
|
|
18
|
+
'BalancerSecondaryIssueManager': '0x13cB5B1338c055BCCE47e5b9a7ffef0b7D24e7F8',
|
|
19
|
+
'BalancerMarginIssueManager': '0xC2168275c109238CDeb6DBa5e5Aa9c792fF4A0f9',
|
|
20
20
|
'Custody': '0x60aEDad13a34b1DC45bDeA9eD6a66d639563e917',
|
|
21
21
|
'CASH': {
|
|
22
22
|
'VCUSD': '0xcd9e67b873Cf50eeb1Dc08b95a29782a5f108f1A',
|