|
| 1 | +// SPDX-License-Identifier: Apache-2.0 OR MIT |
| 2 | +pragma solidity ^0.8.20; |
| 3 | + |
| 4 | +// Generated with ./tools/generate_view_contract.sh out/FilecoinWarmStorageService.sol/FilecoinWarmStorageService.json |
| 5 | + |
| 6 | +import {IPDPProvingSchedule} from "@pdp/IPDPProvingSchedule.sol"; |
| 7 | +import "./FilecoinWarmStorageService.sol"; |
| 8 | +import "./lib/FilecoinWarmStorageServiceStateInternalLibrary.sol"; |
| 9 | +contract FilecoinWarmStorageServiceStateView is IPDPProvingSchedule { |
| 10 | + using FilecoinWarmStorageServiceStateInternalLibrary for FilecoinWarmStorageService; |
| 11 | + FilecoinWarmStorageService public immutable service; |
| 12 | + constructor(FilecoinWarmStorageService _service) { |
| 13 | + service = _service; |
| 14 | + } |
| 15 | + function UPGRADE_INTERFACE_VERSION() external view returns (string memory) { |
| 16 | + return FilecoinWarmStorageServiceStateInternalLibrary.UPGRADE_INTERFACE_VERSION(); |
| 17 | + } |
| 18 | + function calculateRatesPerEpoch(uint256 totalBytes) external view returns (uint256 storageRate, uint256 cacheMissRate, uint256 cdnRate) { |
| 19 | + return FilecoinWarmStorageServiceStateInternalLibrary.calculateRatesPerEpoch(totalBytes); |
| 20 | + } |
| 21 | + function configureProvingPeriod(uint64 _maxProvingPeriod, uint256 _challengeWindowSize) external nonpayable returns () { |
| 22 | + return FilecoinWarmStorageServiceStateInternalLibrary.configureProvingPeriod(_maxProvingPeriod, _challengeWindowSize); |
| 23 | + } |
| 24 | + function dataSetCreated(uint256 dataSetId, address creator, bytes extraData) external nonpayable returns () { |
| 25 | + return FilecoinWarmStorageServiceStateInternalLibrary.dataSetCreated(dataSetId, creator, extraData); |
| 26 | + } |
| 27 | + function dataSetDeleted(uint256 dataSetId, uint256 , bytes extraData) external nonpayable returns () { |
| 28 | + return FilecoinWarmStorageServiceStateInternalLibrary.dataSetDeleted(dataSetId, , extraData); |
| 29 | + } |
| 30 | + function eip712Domain() external view returns (bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions) { |
| 31 | + return FilecoinWarmStorageServiceStateInternalLibrary.eip712Domain(); |
| 32 | + } |
| 33 | + function extsload(bytes32 slot) external view returns (bytes32) { |
| 34 | + return FilecoinWarmStorageServiceStateInternalLibrary.extsload(slot); |
| 35 | + } |
| 36 | + function extsloadStruct(bytes32 slot, uint256 size) external view returns (bytes32[] memory) { |
| 37 | + return FilecoinWarmStorageServiceStateInternalLibrary.extsloadStruct(slot, size); |
| 38 | + } |
| 39 | + function filCDNAddress() external view returns (address) { |
| 40 | + return FilecoinWarmStorageServiceStateInternalLibrary.filCDNAddress(); |
| 41 | + } |
| 42 | + function getEffectiveRates() external view returns (uint256 serviceFee, uint256 spPayment) { |
| 43 | + return FilecoinWarmStorageServiceStateInternalLibrary.getEffectiveRates(); |
| 44 | + } |
| 45 | + function getProvingPeriodForEpoch(uint256 dataSetId, uint256 epoch) external view returns (uint256) { |
| 46 | + return FilecoinWarmStorageServiceStateInternalLibrary.getProvingPeriodForEpoch(dataSetId, epoch); |
| 47 | + } |
| 48 | + function getServicePrice() external view returns (FilecoinWarmStorageService.ServicePricing memory pricing) { |
| 49 | + return FilecoinWarmStorageServiceStateInternalLibrary.getServicePrice(); |
| 50 | + } |
| 51 | + function initialize(uint64 _maxProvingPeriod, uint256 _challengeWindowSize) external nonpayable returns () { |
| 52 | + return FilecoinWarmStorageServiceStateInternalLibrary.initialize(_maxProvingPeriod, _challengeWindowSize); |
| 53 | + } |
| 54 | + function isEpochProven(uint256 dataSetId, uint256 epoch) external view returns (bool) { |
| 55 | + return FilecoinWarmStorageServiceStateInternalLibrary.isEpochProven(dataSetId, epoch); |
| 56 | + } |
| 57 | + function migrate() external nonpayable returns () { |
| 58 | + return FilecoinWarmStorageServiceStateInternalLibrary.migrate(); |
| 59 | + } |
| 60 | + function nextProvingPeriod(uint256 dataSetId, uint256 challengeEpoch, uint256 leafCount, bytes ) external nonpayable returns () { |
| 61 | + return FilecoinWarmStorageServiceStateInternalLibrary.nextProvingPeriod(dataSetId, challengeEpoch, leafCount, ); |
| 62 | + } |
| 63 | + function owner() external view returns (address) { |
| 64 | + return FilecoinWarmStorageServiceStateInternalLibrary.owner(); |
| 65 | + } |
| 66 | + function paymentsContractAddress() external view returns (address) { |
| 67 | + return FilecoinWarmStorageServiceStateInternalLibrary.paymentsContractAddress(); |
| 68 | + } |
| 69 | + function pdpVerifierAddress() external view returns (address) { |
| 70 | + return FilecoinWarmStorageServiceStateInternalLibrary.pdpVerifierAddress(); |
| 71 | + } |
| 72 | + function piecesAdded(uint256 dataSetId, uint256 firstAdded, tuple[] pieceData, bytes extraData) external nonpayable returns () { |
| 73 | + return FilecoinWarmStorageServiceStateInternalLibrary.piecesAdded(dataSetId, firstAdded, pieceData, extraData); |
| 74 | + } |
| 75 | + function piecesScheduledRemove(uint256 dataSetId, uint256[] pieceIds, bytes extraData) external nonpayable returns () { |
| 76 | + return FilecoinWarmStorageServiceStateInternalLibrary.piecesScheduledRemove(dataSetId, pieceIds, extraData); |
| 77 | + } |
| 78 | + function possessionProven(uint256 dataSetId, uint256 , uint256 , uint256 challengeCount) external nonpayable returns () { |
| 79 | + return FilecoinWarmStorageServiceStateInternalLibrary.possessionProven(dataSetId, , , challengeCount); |
| 80 | + } |
| 81 | + function proxiableUUID() external view returns (bytes32) { |
| 82 | + return FilecoinWarmStorageServiceStateInternalLibrary.proxiableUUID(); |
| 83 | + } |
| 84 | + function railTerminated(uint256 railId, address terminator, uint256 endEpoch) external nonpayable returns () { |
| 85 | + return FilecoinWarmStorageServiceStateInternalLibrary.railTerminated(railId, terminator, endEpoch); |
| 86 | + } |
| 87 | + function renounceOwnership() external nonpayable returns () { |
| 88 | + return FilecoinWarmStorageServiceStateInternalLibrary.renounceOwnership(); |
| 89 | + } |
| 90 | + function serviceCommissionBps() external view returns (uint256) { |
| 91 | + return FilecoinWarmStorageServiceStateInternalLibrary.serviceCommissionBps(); |
| 92 | + } |
| 93 | + function storageProviderChanged(uint256 dataSetId, address oldServiceProvider, address newServiceProvider, bytes extraData) external nonpayable returns () { |
| 94 | + return FilecoinWarmStorageServiceStateInternalLibrary.storageProviderChanged(dataSetId, oldServiceProvider, newServiceProvider, extraData); |
| 95 | + } |
| 96 | + function terminateService(uint256 dataSetId) external nonpayable returns () { |
| 97 | + return FilecoinWarmStorageServiceStateInternalLibrary.terminateService(dataSetId); |
| 98 | + } |
| 99 | + function transferOwnership(address newOwner) external nonpayable returns () { |
| 100 | + return FilecoinWarmStorageServiceStateInternalLibrary.transferOwnership(newOwner); |
| 101 | + } |
| 102 | + function updateServiceCommission(uint256 newCommissionBps) external nonpayable returns () { |
| 103 | + return FilecoinWarmStorageServiceStateInternalLibrary.updateServiceCommission(newCommissionBps); |
| 104 | + } |
| 105 | + function upgradeToAndCall(address newImplementation, bytes data) external payable returns () { |
| 106 | + return FilecoinWarmStorageServiceStateInternalLibrary.upgradeToAndCall(newImplementation, data); |
| 107 | + } |
| 108 | + function usdfcTokenAddress() external view returns (address) { |
| 109 | + return FilecoinWarmStorageServiceStateInternalLibrary.usdfcTokenAddress(); |
| 110 | + } |
| 111 | + function validatePayment(uint256 railId, uint256 proposedAmount, uint256 fromEpoch, uint256 toEpoch, uint256 ) external nonpayable returns (IValidator.ValidationResult memory result) { |
| 112 | + return FilecoinWarmStorageServiceStateInternalLibrary.validatePayment(railId, proposedAmount, fromEpoch, toEpoch, ); |
| 113 | + } |
| 114 | + |
| 115 | +} |
0 commit comments