Skip to content

Commit 6d8738f

Browse files
committed
Some cleanup
1 parent 2f342f6 commit 6d8738f

5 files changed

Lines changed: 552 additions & 191 deletions

File tree

pdp/contract/PDPVerifier.abi

Lines changed: 180 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,24 @@
172172
"outputs": [],
173173
"stateMutability": "nonpayable"
174174
},
175+
{
176+
"type": "function",
177+
"name": "announceUpgradePlan",
178+
"inputs": [
179+
{
180+
"name": "nextImplementation",
181+
"type": "address",
182+
"internalType": "address"
183+
},
184+
{
185+
"name": "delayEpochs",
186+
"type": "uint96",
187+
"internalType": "uint96"
188+
}
189+
],
190+
"outputs": [],
191+
"stateMutability": "nonpayable"
192+
},
175193
{
176194
"type": "function",
177195
"name": "calculateProofFee",
@@ -791,6 +809,19 @@
791809
"outputs": [],
792810
"stateMutability": "nonpayable"
793811
},
812+
{
813+
"type": "function",
814+
"name": "legacyPieceStorageIdLimit",
815+
"inputs": [],
816+
"outputs": [
817+
{
818+
"name": "",
819+
"type": "uint64",
820+
"internalType": "uint64"
821+
}
822+
],
823+
"stateMutability": "view"
824+
},
794825
{
795826
"type": "function",
796827
"name": "migrate",
@@ -900,6 +931,24 @@
900931
],
901932
"stateMutability": "view"
902933
},
934+
{
935+
"type": "function",
936+
"name": "processPieceDeletions",
937+
"inputs": [
938+
{
939+
"name": "setId",
940+
"type": "uint256",
941+
"internalType": "uint256"
942+
},
943+
{
944+
"name": "removalCount",
945+
"type": "uint256",
946+
"internalType": "uint256"
947+
}
948+
],
949+
"outputs": [],
950+
"stateMutability": "nonpayable"
951+
},
903952
{
904953
"type": "function",
905954
"name": "proposeDataSetStorageProvider",
@@ -1232,6 +1281,43 @@
12321281
],
12331282
"anonymous": false
12341283
},
1284+
{
1285+
"type": "event",
1286+
"name": "PiecesAddedV2",
1287+
"inputs": [
1288+
{
1289+
"name": "setId",
1290+
"type": "uint256",
1291+
"indexed": true,
1292+
"internalType": "uint256"
1293+
},
1294+
{
1295+
"name": "firstPieceId",
1296+
"type": "uint256",
1297+
"indexed": false,
1298+
"internalType": "uint256"
1299+
},
1300+
{
1301+
"name": "pieceCids",
1302+
"type": "tuple[]",
1303+
"indexed": false,
1304+
"internalType": "struct Cids.PackedCid[]",
1305+
"components": [
1306+
{
1307+
"name": "header",
1308+
"type": "bytes32",
1309+
"internalType": "bytes32"
1310+
},
1311+
{
1312+
"name": "root",
1313+
"type": "bytes32",
1314+
"internalType": "bytes32"
1315+
}
1316+
]
1317+
}
1318+
],
1319+
"anonymous": false
1320+
},
12351321
{
12361322
"type": "event",
12371323
"name": "PiecesRemoved",
@@ -1251,6 +1337,25 @@
12511337
],
12521338
"anonymous": false
12531339
},
1340+
{
1341+
"type": "event",
1342+
"name": "PiecesScheduledForRemoval",
1343+
"inputs": [
1344+
{
1345+
"name": "setId",
1346+
"type": "uint256",
1347+
"indexed": true,
1348+
"internalType": "uint256"
1349+
},
1350+
{
1351+
"name": "pieceIds",
1352+
"type": "uint256[]",
1353+
"indexed": false,
1354+
"internalType": "uint256[]"
1355+
}
1356+
],
1357+
"anonymous": false
1358+
},
12541359
{
12551360
"type": "event",
12561361
"name": "PossessionProven",
@@ -1375,6 +1480,11 @@
13751480
}
13761481
]
13771482
},
1483+
{
1484+
"type": "error",
1485+
"name": "CidTooShort",
1486+
"inputs": []
1487+
},
13781488
{
13791489
"type": "error",
13801490
"name": "CleanupDepositRequired",
@@ -1421,6 +1531,11 @@
14211531
"name": "ERC1967NonPayable",
14221532
"inputs": []
14231533
},
1534+
{
1535+
"type": "error",
1536+
"name": "EmptyRemovalBatch",
1537+
"inputs": []
1538+
},
14241539
{
14251540
"type": "error",
14261541
"name": "ExcessiveChallengeDelay",
@@ -1474,29 +1589,65 @@
14741589
}
14751590
]
14761591
},
1592+
{
1593+
"type": "error",
1594+
"name": "InvalidCommPv2DigestLength",
1595+
"inputs": []
1596+
},
1597+
{
1598+
"type": "error",
1599+
"name": "InvalidCommPv2MultihashLength",
1600+
"inputs": []
1601+
},
1602+
{
1603+
"type": "error",
1604+
"name": "InvalidCommPv2Prefix",
1605+
"inputs": []
1606+
},
1607+
{
1608+
"type": "error",
1609+
"name": "InvalidImplementation",
1610+
"inputs": [
1611+
{
1612+
"name": "implementation",
1613+
"type": "address",
1614+
"internalType": "address"
1615+
}
1616+
]
1617+
},
14771618
{
14781619
"type": "error",
14791620
"name": "InvalidInitialization",
14801621
"inputs": []
14811622
},
1623+
{
1624+
"type": "error",
1625+
"name": "InvalidPieceDeletionBatch",
1626+
"inputs": []
1627+
},
14821628
{
14831629
"type": "error",
14841630
"name": "MaxPiecesMustBePositive",
14851631
"inputs": []
14861632
},
14871633
{
14881634
"type": "error",
1489-
"name": "NotInitializing",
1635+
"name": "NoPiecesToProve",
14901636
"inputs": []
14911637
},
14921638
{
14931639
"type": "error",
1494-
"name": "OnlyStorageProviderCanCleanupPieces",
1640+
"name": "NonMinimalUvarint",
14951641
"inputs": []
14961642
},
14971643
{
14981644
"type": "error",
1499-
"name": "OnlyStorageProviderCanDelete",
1645+
"name": "NotInitializing",
1646+
"inputs": []
1647+
},
1648+
{
1649+
"type": "error",
1650+
"name": "OnlyStorageProvider",
15001651
"inputs": []
15011652
},
15021653
{
@@ -1521,6 +1672,22 @@
15211672
}
15221673
]
15231674
},
1675+
{
1676+
"type": "error",
1677+
"name": "PendingPieceDeletions",
1678+
"inputs": [
1679+
{
1680+
"name": "count",
1681+
"type": "uint256",
1682+
"internalType": "uint256"
1683+
}
1684+
]
1685+
},
1686+
{
1687+
"type": "error",
1688+
"name": "PieceMetadataOverflow",
1689+
"inputs": []
1690+
},
15241691
{
15251692
"type": "error",
15261693
"name": "TransferFailed",
@@ -1541,5 +1708,15 @@
15411708
"internalType": "bytes32"
15421709
}
15431710
]
1711+
},
1712+
{
1713+
"type": "error",
1714+
"name": "UnterminatedUvarint",
1715+
"inputs": []
1716+
},
1717+
{
1718+
"type": "error",
1719+
"name": "UvarintOverflow",
1720+
"inputs": []
15441721
}
15451722
]

0 commit comments

Comments
 (0)