@verified-network/verified-sdk 2.2.9 → 2.3.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.
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contractName": "Vault",
|
|
3
3
|
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"constant": true,
|
|
6
|
+
"inputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "",
|
|
9
|
+
"type": "address"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"name": "lastSnapshotTime",
|
|
13
|
+
"outputs": [
|
|
14
|
+
{
|
|
15
|
+
"name": "",
|
|
16
|
+
"type": "uint256"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"payable": false,
|
|
20
|
+
"stateMutability": "view",
|
|
21
|
+
"type": "function"
|
|
22
|
+
},
|
|
4
23
|
{
|
|
5
24
|
"constant": true,
|
|
6
25
|
"inputs": [
|
|
@@ -32,6 +51,20 @@
|
|
|
32
51
|
"stateMutability": "view",
|
|
33
52
|
"type": "function"
|
|
34
53
|
},
|
|
54
|
+
{
|
|
55
|
+
"constant": true,
|
|
56
|
+
"inputs": [],
|
|
57
|
+
"name": "minSnapshotInterval",
|
|
58
|
+
"outputs": [
|
|
59
|
+
{
|
|
60
|
+
"name": "",
|
|
61
|
+
"type": "uint256"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"payable": false,
|
|
65
|
+
"stateMutability": "view",
|
|
66
|
+
"type": "function"
|
|
67
|
+
},
|
|
35
68
|
{
|
|
36
69
|
"constant": false,
|
|
37
70
|
"inputs": [],
|
|
@@ -262,6 +295,20 @@
|
|
|
262
295
|
"stateMutability": "nonpayable",
|
|
263
296
|
"type": "function"
|
|
264
297
|
},
|
|
298
|
+
{
|
|
299
|
+
"constant": false,
|
|
300
|
+
"inputs": [
|
|
301
|
+
{
|
|
302
|
+
"name": "newIntervalSeconds",
|
|
303
|
+
"type": "uint256"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"name": "setMinSnapshotInterval",
|
|
307
|
+
"outputs": [],
|
|
308
|
+
"payable": false,
|
|
309
|
+
"stateMutability": "nonpayable",
|
|
310
|
+
"type": "function"
|
|
311
|
+
},
|
|
265
312
|
{
|
|
266
313
|
"constant": false,
|
|
267
314
|
"inputs": [
|
|
@@ -489,6 +536,24 @@
|
|
|
489
536
|
"stateMutability": "view",
|
|
490
537
|
"type": "function"
|
|
491
538
|
},
|
|
539
|
+
{
|
|
540
|
+
"constant": false,
|
|
541
|
+
"inputs": [
|
|
542
|
+
{
|
|
543
|
+
"name": "_creator",
|
|
544
|
+
"type": "bytes32"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"name": "_txid",
|
|
548
|
+
"type": "uint256"
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
"name": "cleanTx",
|
|
552
|
+
"outputs": [],
|
|
553
|
+
"payable": false,
|
|
554
|
+
"stateMutability": "nonpayable",
|
|
555
|
+
"type": "function"
|
|
556
|
+
},
|
|
492
557
|
{
|
|
493
558
|
"constant": false,
|
|
494
559
|
"inputs": [
|
|
@@ -23,6 +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
|
+
cleanTx(_creator: string, _txid: string, options?: Options): any;
|
|
26
27
|
snapshotBalance(_creator: string, _token: string, options?: Options): any;
|
|
27
28
|
calculateAverageBalance(_creator: string, _token: string, _fromTime: string, _toTime: string, options?: Options): any;
|
|
28
29
|
collectCustodyFee(_token: string, options?: Options): any;
|
|
@@ -28,6 +28,7 @@ var FUNCTIONS;
|
|
|
28
28
|
FUNCTIONS["COLLECTCUSTODYFEE"] = "collectCustodyFee";
|
|
29
29
|
FUNCTIONS["SETDISTRIBUTOR"] = "setDistributor";
|
|
30
30
|
FUNCTIONS["SETCUSTODYFEE"] = "setCustodyFee";
|
|
31
|
+
FUNCTIONS["CLEANTX"] = "cleanTx";
|
|
31
32
|
})(FUNCTIONS || (FUNCTIONS = {}));
|
|
32
33
|
class Custody extends index_1.VerifiedContract {
|
|
33
34
|
constructor(signer, contractNetworkAddress) {
|
|
@@ -96,6 +97,11 @@ class Custody extends index_1.VerifiedContract {
|
|
|
96
97
|
await this.validateInput(index_1.DATATYPES.STRING, _txid);
|
|
97
98
|
return this.callContract(FUNCTIONS.GETSHARDS, _creator, _txid, options);
|
|
98
99
|
}
|
|
100
|
+
async cleanTx(_creator, _txid, options) {
|
|
101
|
+
await this.validateInput(index_1.DATATYPES.BYTE32, _creator);
|
|
102
|
+
await this.validateInput(index_1.DATATYPES.STRING, _txid);
|
|
103
|
+
return this.callContract(FUNCTIONS.CLEANTX, _creator, _txid, options);
|
|
104
|
+
}
|
|
99
105
|
async snapshotBalance(_creator, _token, options) {
|
|
100
106
|
await this.validateInput(index_1.DATATYPES.BYTE32, _creator);
|
|
101
107
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _token);
|
|
@@ -328,7 +328,7 @@ const contractAddress = {
|
|
|
328
328
|
'BalancerSecondaryIssueManager': '0xE3e3e9b8c0c292eD3756C7A1037322738de6B7FC',
|
|
329
329
|
'MarginTradingPoolFactory': '0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c',
|
|
330
330
|
'BalancerMarginIssueManager': '0xcC52ce78a8fF2198FBD37D85D1686E7C80604cd3',
|
|
331
|
-
'Custody': '
|
|
331
|
+
'Custody': '0x3eDE98D53544249aB0e38211c16782A29D16dC40',
|
|
332
332
|
'Compound': '',
|
|
333
333
|
'CASH': {
|
|
334
334
|
'VCUSD': '0x9947770931A0F4AC74941eaAE003991d2d487d83',
|