Skip to content

Commit 174b19b

Browse files
committed
abis and formating
1 parent b8097fd commit 174b19b

File tree

3 files changed

+6
-55
lines changed

3 files changed

+6
-55
lines changed

abis/Operator.json

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,21 @@
1515
{
1616
"type": "function",
1717
"name": "modifyRailPayment",
18-
"inputs": [
19-
{
20-
"name": "railId",
21-
"type": "uint256",
22-
"internalType": "uint256"
23-
}
24-
],
18+
"inputs": [],
2519
"outputs": [],
2620
"stateMutability": "nonpayable"
2721
},
2822
{
2923
"type": "function",
3024
"name": "terminateRail",
31-
"inputs": [
32-
{
33-
"name": "railId",
34-
"type": "uint256",
35-
"internalType": "uint256"
36-
}
37-
],
25+
"inputs": [],
3826
"outputs": [],
3927
"stateMutability": "nonpayable"
4028
},
4129
{
4230
"type": "function",
4331
"name": "updateLockupPeriod",
4432
"inputs": [
45-
{
46-
"name": "railId",
47-
"type": "uint256",
48-
"internalType": "uint256"
49-
},
5033
{
5134
"name": "newLockupPeriod",
5235
"type": "uint256",

abis/Validator.json

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,7 @@
4646
{
4747
"type": "function",
4848
"name": "disableFutureRailPayments",
49-
"inputs": [
50-
{
51-
"name": "railId",
52-
"type": "uint256",
53-
"internalType": "uint256"
54-
}
55-
],
49+
"inputs": [],
5650
"outputs": [],
5751
"stateMutability": "nonpayable"
5852
},
@@ -181,13 +175,7 @@
181175
{
182176
"type": "function",
183177
"name": "modifyRailPayment",
184-
"inputs": [
185-
{
186-
"name": "railId",
187-
"type": "uint256",
188-
"internalType": "uint256"
189-
}
190-
],
178+
"inputs": [],
191179
"outputs": [],
192180
"stateMutability": "nonpayable"
193181
},
@@ -254,11 +242,6 @@
254242
"type": "function",
255243
"name": "setDealEndEpoch",
256244
"inputs": [
257-
{
258-
"name": "dealId",
259-
"type": "uint256",
260-
"internalType": "uint256"
261-
},
262245
{
263246
"name": "endEpoch",
264247
"type": "int64",
@@ -303,25 +286,14 @@
303286
{
304287
"type": "function",
305288
"name": "terminateRail",
306-
"inputs": [
307-
{
308-
"name": "railId",
309-
"type": "uint256",
310-
"internalType": "uint256"
311-
}
312-
],
289+
"inputs": [],
313290
"outputs": [],
314291
"stateMutability": "nonpayable"
315292
},
316293
{
317294
"type": "function",
318295
"name": "updateLockupPeriod",
319296
"inputs": [
320-
{
321-
"name": "railId",
322-
"type": "uint256",
323-
"internalType": "uint256"
324-
},
325297
{
326298
"name": "newLockupPeriod",
327299
"type": "uint256",

src/Validator.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,7 @@ contract Validator is Initializable, AccessControlUpgradeable, IFilecoinPayValid
472472
* @dev Only callable by the admin
473473
* @param newLockupPeriod New lockup period to set
474474
*/
475-
function updateLockupPeriod(uint256 newLockupPeriod)
476-
external
477-
override
478-
onlyRole(DEFAULT_ADMIN_ROLE)
479-
{
475+
function updateLockupPeriod(uint256 newLockupPeriod) external override onlyRole(DEFAULT_ADMIN_ROLE) {
480476
ValidatorStorage storage $ = _getValidatorStorage();
481477
_updateLockupPeriod(IFilecoinPayV1($.filecoinPay), $.railId, newLockupPeriod, 0);
482478
emit LockupPeriodUpdated($.railId, newLockupPeriod);

0 commit comments

Comments
 (0)