Skip to content

Commit 06de35f

Browse files
committed
ABI changes to TokenStaking after dropping support for legacy staking
1 parent dbc5c04 commit 06de35f

File tree

1 file changed

+66
-180
lines changed

1 file changed

+66
-180
lines changed

deployments/mainnet/TokenStaking.json

Lines changed: 66 additions & 180 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,9 @@
99
"type": "address",
1010
"name": "_token"
1111
},
12-
{
13-
"type": "address",
14-
"name": "_keepStakingContract"
15-
},
16-
{
17-
"type": "address",
18-
"name": "_nucypherStakingContract"
19-
},
20-
{
21-
"type": "address",
22-
"name": "_keepVendingMachine"
23-
},
2412
{
2513
"type": "address",
2614
"name": "_nucypherVendingMachine"
27-
},
28-
{
29-
"type": "address",
30-
"name": "_keepStake"
3115
}
3216
]
3317
},
@@ -173,6 +157,23 @@
173157
}
174158
]
175159
},
160+
{
161+
"type": "event",
162+
"anonymous": false,
163+
"name": "AutoIncreaseToggled",
164+
"inputs": [
165+
{
166+
"type": "address",
167+
"name": "stakingProvider",
168+
"indexed": true
169+
},
170+
{
171+
"type": "bool",
172+
"name": "autoIncrease",
173+
"indexed": false
174+
}
175+
]
176+
},
176177
{
177178
"type": "event",
178179
"anonymous": false,
@@ -304,28 +305,6 @@
304305
}
305306
]
306307
},
307-
{
308-
"type": "event",
309-
"anonymous": false,
310-
"name": "OwnerRefreshed",
311-
"inputs": [
312-
{
313-
"type": "address",
314-
"name": "stakingProvider",
315-
"indexed": true
316-
},
317-
{
318-
"type": "address",
319-
"name": "oldOwner",
320-
"indexed": true
321-
},
322-
{
323-
"type": "address",
324-
"name": "newOwner",
325-
"indexed": true
326-
}
327-
]
328-
},
329308
{
330309
"type": "event",
331310
"anonymous": false,
@@ -365,23 +344,6 @@
365344
}
366345
]
367346
},
368-
{
369-
"type": "event",
370-
"anonymous": false,
371-
"name": "StakeDiscrepancyPenaltySet",
372-
"inputs": [
373-
{
374-
"type": "uint96",
375-
"name": "penalty",
376-
"indexed": false
377-
},
378-
{
379-
"type": "uint256",
380-
"name": "rewardMultiplier",
381-
"indexed": false
382-
}
383-
]
384-
},
385347
{
386348
"type": "event",
387349
"anonymous": false,
@@ -677,6 +639,32 @@
677639
],
678640
"outputs": []
679641
},
642+
{
643+
"type": "function",
644+
"name": "forceUnstakeLegacy",
645+
"constant": false,
646+
"payable": false,
647+
"inputs": [
648+
{
649+
"type": "address",
650+
"name": "stakingProvider"
651+
}
652+
],
653+
"outputs": []
654+
},
655+
{
656+
"type": "function",
657+
"name": "forceUnstakeLegacy",
658+
"constant": false,
659+
"payable": false,
660+
"inputs": [
661+
{
662+
"type": "address[]",
663+
"name": "_stakingProviders"
664+
}
665+
],
666+
"outputs": []
667+
},
680668
{
681669
"type": "function",
682670
"name": "getApplicationsLength",
@@ -690,6 +678,24 @@
690678
}
691679
]
692680
},
681+
{
682+
"type": "function",
683+
"name": "getAutoIncreaseFlag",
684+
"constant": true,
685+
"stateMutability": "view",
686+
"payable": false,
687+
"inputs": [
688+
{
689+
"type": "address",
690+
"name": "stakingProvider"
691+
}
692+
],
693+
"outputs": [
694+
{
695+
"type": "bool"
696+
}
697+
]
698+
},
693699
{
694700
"type": "function",
695701
"name": "getAvailableToAuthorize",
@@ -905,32 +911,6 @@
905911
}
906912
]
907913
},
908-
{
909-
"type": "function",
910-
"name": "notifyKeepStakeDiscrepancy",
911-
"constant": false,
912-
"payable": false,
913-
"inputs": [
914-
{
915-
"type": "address",
916-
"name": "stakingProvider"
917-
}
918-
],
919-
"outputs": []
920-
},
921-
{
922-
"type": "function",
923-
"name": "notifyNuStakeDiscrepancy",
924-
"constant": false,
925-
"payable": false,
926-
"inputs": [
927-
{
928-
"type": "address",
929-
"name": "stakingProvider"
930-
}
931-
],
932-
"outputs": []
933-
},
934914
{
935915
"type": "function",
936916
"name": "numCheckpoints",
@@ -1130,23 +1110,6 @@
11301110
],
11311111
"outputs": []
11321112
},
1133-
{
1134-
"type": "function",
1135-
"name": "setStakeDiscrepancyPenalty",
1136-
"constant": false,
1137-
"payable": false,
1138-
"inputs": [
1139-
{
1140-
"type": "uint96",
1141-
"name": "penalty"
1142-
},
1143-
{
1144-
"type": "uint256",
1145-
"name": "rewardMultiplier"
1146-
}
1147-
],
1148-
"outputs": []
1149-
},
11501113
{
11511114
"type": "function",
11521115
"name": "slash",
@@ -1224,66 +1187,6 @@
12241187
],
12251188
"outputs": []
12261189
},
1227-
{
1228-
"type": "function",
1229-
"name": "stakeDiscrepancyPenalty",
1230-
"constant": true,
1231-
"stateMutability": "view",
1232-
"payable": false,
1233-
"inputs": [],
1234-
"outputs": [
1235-
{
1236-
"type": "uint96"
1237-
}
1238-
]
1239-
},
1240-
{
1241-
"type": "function",
1242-
"name": "stakeDiscrepancyRewardMultiplier",
1243-
"constant": true,
1244-
"stateMutability": "view",
1245-
"payable": false,
1246-
"inputs": [],
1247-
"outputs": [
1248-
{
1249-
"type": "uint256"
1250-
}
1251-
]
1252-
},
1253-
{
1254-
"type": "function",
1255-
"name": "stakeKeep",
1256-
"constant": false,
1257-
"payable": false,
1258-
"inputs": [
1259-
{
1260-
"type": "address",
1261-
"name": "stakingProvider"
1262-
}
1263-
],
1264-
"outputs": []
1265-
},
1266-
{
1267-
"type": "function",
1268-
"name": "stakeNu",
1269-
"constant": false,
1270-
"payable": false,
1271-
"inputs": [
1272-
{
1273-
"type": "address",
1274-
"name": "stakingProvider"
1275-
},
1276-
{
1277-
"type": "address",
1278-
"name": "beneficiary"
1279-
},
1280-
{
1281-
"type": "address",
1282-
"name": "authorizer"
1283-
}
1284-
],
1285-
"outputs": []
1286-
},
12871190
{
12881191
"type": "function",
12891192
"name": "stakedNu",
@@ -1332,43 +1235,30 @@
13321235
},
13331236
{
13341237
"type": "function",
1335-
"name": "topUp",
1238+
"name": "toggleAutoAuthorizationIncrease",
13361239
"constant": false,
13371240
"payable": false,
13381241
"inputs": [
13391242
{
13401243
"type": "address",
13411244
"name": "stakingProvider"
1342-
},
1343-
{
1344-
"type": "uint96",
1345-
"name": "amount"
13461245
}
13471246
],
13481247
"outputs": []
13491248
},
13501249
{
13511250
"type": "function",
1352-
"name": "topUpKeep",
1251+
"name": "topUp",
13531252
"constant": false,
13541253
"payable": false,
13551254
"inputs": [
13561255
{
13571256
"type": "address",
13581257
"name": "stakingProvider"
1359-
}
1360-
],
1361-
"outputs": []
1362-
},
1363-
{
1364-
"type": "function",
1365-
"name": "topUpNu",
1366-
"constant": false,
1367-
"payable": false,
1368-
"inputs": [
1258+
},
13691259
{
1370-
"type": "address",
1371-
"name": "stakingProvider"
1260+
"type": "uint96",
1261+
"name": "amount"
13721262
}
13731263
],
13741264
"outputs": []
@@ -1421,10 +1311,6 @@
14211311
{
14221312
"type": "address",
14231313
"name": "stakingProvider"
1424-
},
1425-
{
1426-
"type": "uint96",
1427-
"name": "amount"
14281314
}
14291315
],
14301316
"outputs": []

0 commit comments

Comments
 (0)