@verified-network/verified-sdk 2.3.0 → 2.3.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.
|
@@ -1,25 +1,6 @@
|
|
|
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
|
-
},
|
|
23
4
|
{
|
|
24
5
|
"constant": true,
|
|
25
6
|
"inputs": [
|
|
@@ -30,34 +11,20 @@
|
|
|
30
11
|
{
|
|
31
12
|
"name": "",
|
|
32
13
|
"type": "address"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "",
|
|
36
|
-
"type": "uint256"
|
|
37
14
|
}
|
|
38
15
|
],
|
|
39
|
-
"name": "
|
|
16
|
+
"name": "accruals",
|
|
40
17
|
"outputs": [
|
|
41
18
|
{
|
|
42
|
-
"name": "
|
|
19
|
+
"name": "lastTimestamp",
|
|
43
20
|
"type": "uint256"
|
|
44
21
|
},
|
|
45
22
|
{
|
|
46
|
-
"name": "
|
|
23
|
+
"name": "cumulativeBalance",
|
|
47
24
|
"type": "uint256"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"payable": false,
|
|
51
|
-
"stateMutability": "view",
|
|
52
|
-
"type": "function"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"constant": true,
|
|
56
|
-
"inputs": [],
|
|
57
|
-
"name": "minSnapshotInterval",
|
|
58
|
-
"outputs": [
|
|
25
|
+
},
|
|
59
26
|
{
|
|
60
|
-
"name": "",
|
|
27
|
+
"name": "lastBalance",
|
|
61
28
|
"type": "uint256"
|
|
62
29
|
}
|
|
63
30
|
],
|
|
@@ -295,20 +262,6 @@
|
|
|
295
262
|
"stateMutability": "nonpayable",
|
|
296
263
|
"type": "function"
|
|
297
264
|
},
|
|
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
|
-
},
|
|
312
265
|
{
|
|
313
266
|
"constant": false,
|
|
314
267
|
"inputs": [
|
|
@@ -582,14 +535,6 @@
|
|
|
582
535
|
{
|
|
583
536
|
"name": "token",
|
|
584
537
|
"type": "address"
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
"name": "fromTime",
|
|
588
|
-
"type": "uint256"
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
"name": "toTime",
|
|
592
|
-
"type": "uint256"
|
|
593
538
|
}
|
|
594
539
|
],
|
|
595
540
|
"name": "calculateAverageBalance",
|
|
@@ -25,7 +25,7 @@ export default class Custody extends VerifiedContract {
|
|
|
25
25
|
getShards(_creator: string, _txid: string, options?: Options): any;
|
|
26
26
|
cleanTx(_creator: string, _txid: string, options?: Options): any;
|
|
27
27
|
snapshotBalance(_creator: string, _token: string, options?: Options): any;
|
|
28
|
-
calculateAverageBalance(_creator: string, _token: string,
|
|
28
|
+
calculateAverageBalance(_creator: string, _token: string, options?: Options): any;
|
|
29
29
|
collectCustodyFee(_token: string, options?: Options): any;
|
|
30
30
|
setDistributor(_nominee: string, options?: Options): any;
|
|
31
31
|
setCustodyFee(_fee: string, options?: Options): any;
|
|
@@ -107,11 +107,9 @@ class Custody extends index_1.VerifiedContract {
|
|
|
107
107
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _token);
|
|
108
108
|
return this.callContract(FUNCTIONS.SNAPSHOT, _creator, _token, options);
|
|
109
109
|
}
|
|
110
|
-
async calculateAverageBalance(_creator, _token,
|
|
110
|
+
async calculateAverageBalance(_creator, _token, options) {
|
|
111
111
|
await this.validateInput(index_1.DATATYPES.BYTE32, _creator);
|
|
112
112
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _token);
|
|
113
|
-
await this.validateInput(index_1.DATATYPES.NUMBER, _fromTime);
|
|
114
|
-
await this.validateInput(index_1.DATATYPES.NUMBER, _toTime);
|
|
115
113
|
return this.callContract(FUNCTIONS.CALCULATEAVERAGEBALANCE, _creator, _token, _fromTime, _toTime, options);
|
|
116
114
|
}
|
|
117
115
|
async collectCustodyFee(_token, options) {
|
|
@@ -328,7 +328,7 @@ const contractAddress = {
|
|
|
328
328
|
'BalancerSecondaryIssueManager': '0xE3e3e9b8c0c292eD3756C7A1037322738de6B7FC',
|
|
329
329
|
'MarginTradingPoolFactory': '0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c',
|
|
330
330
|
'BalancerMarginIssueManager': '0xcC52ce78a8fF2198FBD37D85D1686E7C80604cd3',
|
|
331
|
-
'Custody': '
|
|
331
|
+
'Custody': '0xD292658282828BB845c1c64CA19621a98c622c6a',
|
|
332
332
|
'Compound': '',
|
|
333
333
|
'CASH': {
|
|
334
334
|
'VCUSD': '0x9947770931A0F4AC74941eaAE003991d2d487d83',
|