@verified-network/verified-sdk 2.3.0 → 2.3.2

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,24 @@
30
11
  {
31
12
  "name": "",
32
13
  "type": "address"
33
- },
34
- {
35
- "name": "",
36
- "type": "uint256"
37
14
  }
38
15
  ],
39
- "name": "userSnapshots",
16
+ "name": "accruals",
40
17
  "outputs": [
41
18
  {
42
- "name": "timestamp",
19
+ "name": "startTimestamp",
43
20
  "type": "uint256"
44
21
  },
45
22
  {
46
- "name": "balance",
23
+ "name": "lastTimestamp",
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": "cumulativeBalance",
28
+ "type": "uint256"
29
+ },
30
+ {
31
+ "name": "lastBalance",
61
32
  "type": "uint256"
62
33
  }
63
34
  ],
@@ -250,6 +221,18 @@
250
221
  "name": "feecollection",
251
222
  "type": "event"
252
223
  },
224
+ {
225
+ "anonymous": false,
226
+ "inputs": [
227
+ {
228
+ "indexed": false,
229
+ "name": "f",
230
+ "type": "uint256"
231
+ }
232
+ ],
233
+ "name": "feeCalc",
234
+ "type": "event"
235
+ },
253
236
  {
254
237
  "anonymous": false,
255
238
  "inputs": [
@@ -295,20 +278,6 @@
295
278
  "stateMutability": "nonpayable",
296
279
  "type": "function"
297
280
  },
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
281
  {
313
282
  "constant": false,
314
283
  "inputs": [
@@ -582,14 +551,6 @@
582
551
  {
583
552
  "name": "token",
584
553
  "type": "address"
585
- },
586
- {
587
- "name": "fromTime",
588
- "type": "uint256"
589
- },
590
- {
591
- "name": "toTime",
592
- "type": "uint256"
593
554
  }
594
555
  ],
595
556
  "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, _fromTime: string, _toTime: string, options?: Options): any;
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, _fromTime, _toTime, options) {
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': '0x3eDE98D53544249aB0e38211c16782A29D16dC40',
331
+ 'Custody': '0xcB79E8Dc07F085234437Bf3075ABE48BE5Ab1Ec0',
332
332
  'Compound': '',
333
333
  'CASH': {
334
334
  'VCUSD': '0x9947770931A0F4AC74941eaAE003991d2d487d83',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",