@verified-network/verified-sdk 2.7.1 → 2.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.
- package/dist/abi/assetmanager/balancer/PrimaryIssueManager.json +18 -0
- package/dist/contract/amm/primary/index.d.ts +1 -0
- package/dist/contract/amm/primary/index.js +6 -0
- package/dist/contract/liquidity/index.d.ts +5 -0
- package/dist/contract/liquidity/index.js +9 -0
- package/dist/contractAddress/index.js +8 -8
- package/package.json +1 -1
|
@@ -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: "
|
|
60
|
-
Keeper: "
|
|
61
|
-
HedgeOracle: "
|
|
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: "
|
|
329
|
-
Distribution: "
|
|
328
|
+
Liquidity: "0xae14D627478562c0b15e7a325e2e876C4f4EECAA",
|
|
329
|
+
Distribution: "0xe027F6A1b9604eFfC04ccBc5c90D12d878223BfB",
|
|
330
330
|
PrimaryIssuePoolFactory: "0xDA13BC71FEe08FfD523f10458B0e2c2D8427BBD5",
|
|
331
|
-
BalancerPrimaryIssueManager: "
|
|
331
|
+
BalancerPrimaryIssueManager: "0x688077e7BE87954A6Cd20626d87233a0354957eD",
|
|
332
332
|
SecondaryIssuePoolFactory: "0x4519148Cc4030c2e3573f1f886ed4071Fa35d62B",
|
|
333
|
-
BalancerSecondaryIssueManager: "
|
|
333
|
+
BalancerSecondaryIssueManager: "0xA93e8DeB972924706d995199dd6392FA34C261ba",
|
|
334
334
|
MarginTradingPoolFactory: "0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c",
|
|
335
|
-
BalancerMarginIssueManager: "
|
|
335
|
+
BalancerMarginIssueManager: "0x11aE85aA27f32f005fB217Fd613AaA651c4a180e",
|
|
336
336
|
Custody: "0x594DC49A7C2B4b0f279247239cb6F1d943a99e7F",
|
|
337
337
|
Compound: "0x4b3CBDB8FBe5fcdDF796cd42d3749f8AcD53DA73",
|
|
338
338
|
CASH: {
|