@verified-network/verified-sdk 1.4.5 → 1.4.7
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.
|
@@ -26,6 +26,12 @@ var FUNCTIONS;
|
|
|
26
26
|
FUNCTIONS["PAYOUT"] = "payout";
|
|
27
27
|
FUNCTIONS["PAUSE"] = "pause";
|
|
28
28
|
FUNCTIONS["UNPAUSE"] = "unpause";
|
|
29
|
+
FUNCTIONS["WITHDRAWFUNDS"] = "withdrawFunds";
|
|
30
|
+
FUNCTIONS["PUSHFUNDS"] = "pushFunds";
|
|
31
|
+
FUNCTIONS["UPDATEFUNDSRECEIVED"] = "updateFundsReceived";
|
|
32
|
+
FUNCTIONS["WITHDRAWABLEFUNDSOF"] = "withdrawableFundsOf";
|
|
33
|
+
FUNCTIONS["WITHDRAWNFUNDSOF"] = "withdrawnFundsOf";
|
|
34
|
+
FUNCTIONS["ACCUMULATIVEFUNDSOF"] = "accumulativeFundsOf";
|
|
29
35
|
})(FUNCTIONS || (FUNCTIONS = {}));
|
|
30
36
|
class Security extends index_1.VerifiedContract {
|
|
31
37
|
constructor(signer, tokenAddress) {
|
|
@@ -129,5 +135,26 @@ class Security extends index_1.VerifiedContract {
|
|
|
129
135
|
async unpause(options) {
|
|
130
136
|
return this.callContract(FUNCTIONS.UNPAUSE, options);
|
|
131
137
|
}
|
|
138
|
+
async withdrawableFundsOf(_holder, options) {
|
|
139
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, _holder);
|
|
140
|
+
return this.callContract(FUNCTIONS.WITHDRAWABLEFUNDSOF, _holder, options);
|
|
141
|
+
}
|
|
142
|
+
async withdrawnFundsOf(_holder, options) {
|
|
143
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, _holder);
|
|
144
|
+
return this.callContract(FUNCTIONS.WITHDRAWNFUNDSOF, _holder, options);
|
|
145
|
+
}
|
|
146
|
+
async accumulativeFundsOf(_holder, options) {
|
|
147
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, _holder);
|
|
148
|
+
return this.callContract(FUNCTIONS.ACCUMULATIVEFUNDSOF, _holder, options);
|
|
149
|
+
}
|
|
150
|
+
async withdrawFunds(options) {
|
|
151
|
+
return this.callContract(FUNCTIONS.WITHDRAWFUNDS, options);
|
|
152
|
+
}
|
|
153
|
+
async pushFunds(_holder, options) {
|
|
154
|
+
return this.callContract(FUNCTIONS.PUSHFUNDS, _holder, options);
|
|
155
|
+
}
|
|
156
|
+
async updateFundsReceived(options) {
|
|
157
|
+
return this.callContract(FUNCTIONS.UPDATEFUNDSRECEIVED, options);
|
|
158
|
+
}
|
|
132
159
|
}
|
|
133
160
|
exports.default = Security;
|
|
@@ -19,7 +19,7 @@ const contractAddress = {
|
|
|
19
19
|
'SecondaryIssuePoolFactory': '0xe3e79e4106327e6eAeFBD03C1fD3A4A531c59b10',
|
|
20
20
|
'BalancerSecondaryIssueManager': '0xd99eaA9786050dab5c3332E1E6eD9d6C4fB6cb6e',
|
|
21
21
|
'MarginTradingPoolFactory': '0x84766CE538613bb5f3a6E6bCe0Ed1dB650545208',
|
|
22
|
-
'BalancerMarginIssueManager': '
|
|
22
|
+
'BalancerMarginIssueManager': '0x760DbfA77007EEcEe92256E3BA87AF036BB4524b',
|
|
23
23
|
'Custody': '0x5fafb140f86FFd21C2C772Ea4b23225faA00ecE6',
|
|
24
24
|
'Compound': '0xe7da2f6c05040765660cd20f5defc69ce7df2309',
|
|
25
25
|
'CASH': {
|