UNPKG

@mantleio/contracts

Version:
477 lines (476 loc) 10.9 kB
{ "_format": "hh-sol-artifact-1", "contractName": "IDataLayrPaymentManager", "sourceName": "contracts/libraries/eigenda/interfaces/IDataLayrPaymentManager.sol", "abi": [ { "inputs": [], "name": "collateralToken", "outputs": [ { "internalType": "contract IERC20", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint32", "name": "toTaskNumber", "type": "uint32" }, { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "commitPayment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "onBehalfOf", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "depositFutureFees", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" } ], "name": "getAmount1", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" } ], "name": "getAmount2", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" } ], "name": "getChallengeStatus", "outputs": [ { "internalType": "enum IPaymentManager.ChallengeStatus", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" } ], "name": "getDiff", "outputs": [ { "internalType": "uint48", "name": "", "type": "uint48" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" } ], "name": "getFromTaskNumber", "outputs": [ { "internalType": "uint48", "name": "", "type": "uint48" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "getPaymentCollateral", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" } ], "name": "getToTaskNumber", "outputs": [ { "internalType": "uint48", "name": "", "type": "uint48" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "uint96", "name": "amount1", "type": "uint96" }, { "internalType": "uint96", "name": "amount2", "type": "uint96" } ], "name": "initPaymentChallenge", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "initiator", "type": "address" }, { "internalType": "address", "name": "payer", "type": "address" }, { "internalType": "uint256", "name": "feeAmount", "type": "uint256" } ], "name": "payFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "paymentFraudproofCollateral", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "paymentFraudproofInterval", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "paymentToken", "outputs": [ { "internalType": "contract IERC20", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "bool", "name": "secondHalf", "type": "bool" }, { "internalType": "uint96", "name": "amount1", "type": "uint96" }, { "internalType": "uint96", "name": "amount2", "type": "uint96" } ], "name": "performChallengeBisectionStep", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "redeemPayment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" } ], "name": "resolveChallenge", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "uint256", "name": "stakeIndex", "type": "uint256" }, { "internalType": "uint48", "name": "nonSignerIndex", "type": "uint48" }, { "internalType": "bytes32[]", "name": "nonSignerPubkeyHashes", "type": "bytes32[]" }, { "components": [ { "internalType": "uint256", "name": "signedStakeFirstQuorum", "type": "uint256" }, { "internalType": "uint256", "name": "signedStakeSecondQuorum", "type": "uint256" } ], "internalType": "struct IPaymentManager.TotalStakes", "name": "totalStakesSigned", "type": "tuple" }, { "components": [ { "components": [ { "internalType": "bytes32", "name": "headerHash", "type": "bytes32" }, { "internalType": "uint32", "name": "durationDataStoreId", "type": "uint32" }, { "internalType": "uint32", "name": "globalDataStoreId", "type": "uint32" }, { "internalType": "uint32", "name": "referenceBlockNumber", "type": "uint32" }, { "internalType": "uint32", "name": "blockNumber", "type": "uint32" }, { "internalType": "uint96", "name": "fee", "type": "uint96" }, { "internalType": "address", "name": "confirmer", "type": "address" }, { "internalType": "bytes32", "name": "signatoryRecordHash", "type": "bytes32" } ], "internalType": "struct IDataLayrServiceManager.DataStoreMetadata", "name": "metadata", "type": "tuple" }, { "internalType": "uint8", "name": "duration", "type": "uint8" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" }, { "internalType": "uint32", "name": "index", "type": "uint32" } ], "internalType": "struct IDataLayrServiceManager.DataStoreSearchData", "name": "searchData", "type": "tuple" }, { "internalType": "uint256", "name": "stakeHistoryIndex", "type": "uint256" } ], "name": "respondToPaymentChallengeFinal", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "allowed", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "setAllowance", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_paymentFraudproofCollateral", "type": "uint256" } ], "name": "setPaymentFraudproofCollateral", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }