@verified-network/verified-sdk 2.3.3 → 2.3.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.
|
@@ -306,6 +306,25 @@
|
|
|
306
306
|
"stateMutability": "view",
|
|
307
307
|
"type": "function"
|
|
308
308
|
},
|
|
309
|
+
{
|
|
310
|
+
"constant": true,
|
|
311
|
+
"inputs": [
|
|
312
|
+
{
|
|
313
|
+
"name": "_creator",
|
|
314
|
+
"type": "bytes32"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"name": "getCreator",
|
|
318
|
+
"outputs": [
|
|
319
|
+
{
|
|
320
|
+
"name": "",
|
|
321
|
+
"type": "bool"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"payable": false,
|
|
325
|
+
"stateMutability": "view",
|
|
326
|
+
"type": "function"
|
|
327
|
+
},
|
|
309
328
|
{
|
|
310
329
|
"constant": false,
|
|
311
330
|
"inputs": [
|
|
@@ -23,7 +23,7 @@ export default class Custody extends VerifiedContract {
|
|
|
23
23
|
signTransaction(_creator: string, _participant: string, _tx: string, options?: Options): any;
|
|
24
24
|
checkQuorum(_creator: string, _txid: string, options?: Options): any;
|
|
25
25
|
getShards(_creator: string, _txid: string, options?: Options): any;
|
|
26
|
-
|
|
26
|
+
getCreator(_creator: string, options?: Options): any;
|
|
27
27
|
snapshotBalance(_creator: string, _token: string, options?: Options): any;
|
|
28
28
|
calculateAverageBalance(_creator: string, _token: string, options?: Options): any;
|
|
29
29
|
collectCustodyFee(_token: string, options?: Options): any;
|
|
@@ -28,7 +28,6 @@ var FUNCTIONS;
|
|
|
28
28
|
FUNCTIONS["COLLECTCUSTODYFEE"] = "collectCustodyFee";
|
|
29
29
|
FUNCTIONS["SETDISTRIBUTOR"] = "setDistributor";
|
|
30
30
|
FUNCTIONS["SETCUSTODYFEE"] = "setCustodyFee";
|
|
31
|
-
FUNCTIONS["CLEANTX"] = "cleanTx";
|
|
32
31
|
})(FUNCTIONS || (FUNCTIONS = {}));
|
|
33
32
|
class Custody extends index_1.VerifiedContract {
|
|
34
33
|
constructor(signer, contractNetworkAddress) {
|
|
@@ -97,10 +96,9 @@ class Custody extends index_1.VerifiedContract {
|
|
|
97
96
|
await this.validateInput(index_1.DATATYPES.STRING, _txid);
|
|
98
97
|
return this.callContract(FUNCTIONS.GETSHARDS, _creator, _txid, options);
|
|
99
98
|
}
|
|
100
|
-
async
|
|
99
|
+
async getCreator(_creator, options) {
|
|
101
100
|
await this.validateInput(index_1.DATATYPES.BYTE32, _creator);
|
|
102
|
-
|
|
103
|
-
return this.callContract(FUNCTIONS.CLEANTX, _creator, _txid, options);
|
|
101
|
+
return this.callContract(FUNCTIONS.GETCREATOR, _creator, options);
|
|
104
102
|
}
|
|
105
103
|
async snapshotBalance(_creator, _token, options) {
|
|
106
104
|
await this.validateInput(index_1.DATATYPES.BYTE32, _creator);
|
|
@@ -328,7 +328,7 @@ const contractAddress = {
|
|
|
328
328
|
'BalancerSecondaryIssueManager': '0xE3e3e9b8c0c292eD3756C7A1037322738de6B7FC',
|
|
329
329
|
'MarginTradingPoolFactory': '0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c',
|
|
330
330
|
'BalancerMarginIssueManager': '0xcC52ce78a8fF2198FBD37D85D1686E7C80604cd3',
|
|
331
|
-
'Custody': '
|
|
331
|
+
'Custody': '0x44b314B4AF1c44C401e0E8390Ab4F62B43C6FA98',
|
|
332
332
|
'Compound': '',
|
|
333
333
|
'CASH': {
|
|
334
334
|
'VCUSD': '0x9947770931A0F4AC74941eaAE003991d2d487d83',
|