From ea3c9b21eb386a3397d545924c6d8fa84f0f5f32 Mon Sep 17 00:00:00 2001 From: Yaco 0x Date: Wed, 18 Sep 2024 09:18:53 -0300 Subject: [PATCH] fix: remove unneeded abi data --- .../src/abis/bondEscalationModule.ts | 1125 ----------------- 1 file changed, 1125 deletions(-) diff --git a/packages/automated-dispute/src/abis/bondEscalationModule.ts b/packages/automated-dispute/src/abis/bondEscalationModule.ts index 45c9878..915829c 100644 --- a/packages/automated-dispute/src/abis/bondEscalationModule.ts +++ b/packages/automated-dispute/src/abis/bondEscalationModule.ts @@ -580,1131 +580,6 @@ export const bondEscalationModuleAbi = [ }, rawMetadata: '{"compiler":{"version":"0.8.19+commit.7dd6d404"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"contract IOracle","name":"_oracle","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BondEscalationModule_BondEscalationCantBeSettled","type":"error"},{"inputs":[],"name":"BondEscalationModule_BondEscalationNotOver","type":"error"},{"inputs":[],"name":"BondEscalationModule_BondEscalationOver","type":"error"},{"inputs":[],"name":"BondEscalationModule_CanOnlySurpassByOnePledge","type":"error"},{"inputs":[],"name":"BondEscalationModule_CannotBreakTieDuringTyingBuffer","type":"error"},{"inputs":[],"name":"BondEscalationModule_DisputeDoesNotExist","type":"error"},{"inputs":[],"name":"BondEscalationModule_DisputeWindowOver","type":"error"},{"inputs":[],"name":"BondEscalationModule_InvalidDispute","type":"error"},{"inputs":[],"name":"BondEscalationModule_InvalidEscalationParameters","type":"error"},{"inputs":[],"name":"BondEscalationModule_MaxNumberOfEscalationsReached","type":"error"},{"inputs":[],"name":"BondEscalationModule_NotEscalatable","type":"error"},{"inputs":[],"name":"BondEscalationModule_ShouldBeEscalated","type":"error"},{"inputs":[],"name":"BondEscalationModule_ZeroValue","type":"error"},{"inputs":[],"name":"Module_OnlyOracle","type":"error"},{"inputs":[],"name":"Validator_InvalidDispute","type":"error"},{"inputs":[],"name":"Validator_InvalidResponse","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_requestId","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"_disputeId","type":"bytes32"},{"indexed":false,"internalType":"enum IBondEscalationModule.BondEscalationStatus","name":"_status","type":"uint8"}],"name":"BondEscalationStatusUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_disputeId","type":"bytes32"},{"components":[{"internalType":"address","name":"disputer","type":"address"},{"internalType":"address","name":"proposer","type":"address"},{"internalType":"bytes32","name":"responseId","type":"bytes32"},{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"indexed":false,"internalType":"struct IOracle.Dispute","name":"_dispute","type":"tuple"},{"indexed":false,"internalType":"enum IOracle.DisputeStatus","name":"_status","type":"uint8"}],"name":"DisputeStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_disputeId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"_pledger","type":"address"},{"indexed":true,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"PledgedAgainstDispute","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_disputeId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"_pledger","type":"address"},{"indexed":true,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"PledgedForDispute","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_requestId","type":"bytes32"},{"components":[{"internalType":"address","name":"proposer","type":"address"},{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"bytes","name":"response","type":"bytes"}],"indexed":false,"internalType":"struct IOracle.Response","name":"_response","type":"tuple"},{"indexed":false,"internalType":"address","name":"_finalizer","type":"address"}],"name":"RequestFinalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_requestId","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"_responseId","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"_disputeId","type":"bytes32"},{"components":[{"internalType":"address","name":"disputer","type":"address"},{"internalType":"address","name":"proposer","type":"address"},{"internalType":"bytes32","name":"responseId","type":"bytes32"},{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"indexed":false,"internalType":"struct IOracle.Dispute","name":"_dispute","type":"tuple"},{"indexed":false,"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"ResponseDisputed","type":"event"},{"inputs":[],"name":"ORACLE","outputs":[{"internalType":"contract IOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"decodeRequestData","outputs":[{"components":[{"internalType":"contract IBondEscalationAccounting","name":"accountingExtension","type":"address"},{"internalType":"contract IERC20","name":"bondToken","type":"address"},{"internalType":"uint256","name":"bondSize","type":"uint256"},{"internalType":"uint256","name":"maxNumberOfEscalations","type":"uint256"},{"internalType":"uint256","name":"bondEscalationDeadline","type":"uint256"},{"internalType":"uint256","name":"tyingBuffer","type":"uint256"},{"internalType":"uint256","name":"disputeWindow","type":"uint256"}],"internalType":"struct IBondEscalationModule.RequestParameters","name":"_params","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"uint96","name":"nonce","type":"uint96"},{"internalType":"address","name":"requester","type":"address"},{"internalType":"address","name":"requestModule","type":"address"},{"internalType":"address","name":"responseModule","type":"address"},{"internalType":"address","name":"disputeModule","type":"address"},{"internalType":"address","name":"resolutionModule","type":"address"},{"internalType":"address","name":"finalityModule","type":"address"},{"internalType":"bytes","name":"requestModuleData","type":"bytes"},{"internalType":"bytes","name":"responseModuleData","type":"bytes"},{"internalType":"bytes","name":"disputeModuleData","type":"bytes"},{"internalType":"bytes","name":"resolutionModuleData","type":"bytes"},{"internalType":"bytes","name":"finalityModuleData","type":"bytes"}],"internalType":"struct IOracle.Request","name":"_request","type":"tuple"},{"components":[{"internalType":"address","name":"proposer","type":"address"},{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"bytes","name":"response","type":"bytes"}],"internalType":"struct IOracle.Response","name":"_response","type":"tuple"},{"components":[{"internalType":"address","name":"disputer","type":"address"},{"internalType":"address","name":"proposer","type":"address"},{"internalType":"bytes32","name":"responseId","type":"bytes32"},{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"internalType":"struct IOracle.Dispute","name":"_dispute","type":"tuple"}],"name":"disputeResponse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint96","name":"nonce","type":"uint96"},{"internalType":"address","name":"requester","type":"address"},{"internalType":"address","name":"requestModule","type":"address"},{"internalType":"address","name":"responseModule","type":"address"},{"internalType":"address","name":"disputeModule","type":"address"},{"internalType":"address","name":"resolutionModule","type":"address"},{"internalType":"address","name":"finalityModule","type":"address"},{"internalType":"bytes","name":"requestModuleData","type":"bytes"},{"internalType":"bytes","name":"responseModuleData","type":"bytes"},{"internalType":"bytes","name":"disputeModuleData","type":"bytes"},{"internalType":"bytes","name":"resolutionModuleData","type":"bytes"},{"internalType":"bytes","name":"finalityModuleData","type":"bytes"}],"internalType":"struct IOracle.Request","name":"_request","type":"tuple"},{"components":[{"internalType":"address","name":"proposer","type":"address"},{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"bytes","name":"response","type":"bytes"}],"internalType":"struct IOracle.Response","name":"_response","type":"tuple"},{"internalType":"address","name":"_finalizer","type":"address"}],"name":"finalizeRequest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_requestId","type":"bytes32"}],"name":"getEscalation","outputs":[{"components":[{"internalType":"bytes32","name":"disputeId","type":"bytes32"},{"internalType":"enum IBondEscalationModule.BondEscalationStatus","name":"status","type":"uint8"},{"internalType":"uint256","name":"amountOfPledgesForDispute","type":"uint256"},{"internalType":"uint256","name":"amountOfPledgesAgainstDispute","type":"uint256"}],"internalType":"struct IBondEscalationModule.BondEscalation","name":"_escalation","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"moduleName","outputs":[{"internalType":"string","name":"_moduleName","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_disputeId","type":"bytes32"},{"components":[{"internalType":"uint96","name":"nonce","type":"uint96"},{"internalType":"address","name":"requester","type":"address"},{"internalType":"address","name":"requestModule","type":"address"},{"internalType":"address","name":"responseModule","type":"address"},{"internalType":"address","name":"disputeModule","type":"address"},{"internalType":"address","name":"resolutionModule","type":"address"},{"internalType":"address","name":"finalityModule","type":"address"},{"internalType":"bytes","name":"requestModuleData","type":"bytes"},{"internalType":"bytes","name":"responseModuleData","type":"bytes"},{"internalType":"bytes","name":"disputeModuleData","type":"bytes"},{"internalType":"bytes","name":"resolutionModuleData","type":"bytes"},{"internalType":"bytes","name":"finalityModuleData","type":"bytes"}],"internalType":"struct IOracle.Request","name":"_request","type":"tuple"},{"components":[{"internalType":"address","name":"proposer","type":"address"},{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"bytes","name":"response","type":"bytes"}],"internalType":"struct IOracle.Response","name":"","type":"tuple"},{"components":[{"internalType":"address","name":"disputer","type":"address"},{"internalType":"address","name":"proposer","type":"address"},{"internalType":"bytes32","name":"responseId","type":"bytes32"},{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"internalType":"struct IOracle.Dispute","name":"_dispute","type":"tuple"}],"name":"onDisputeStatusChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint96","name":"nonce","type":"uint96"},{"internalType":"address","name":"requester","type":"address"},{"internalType":"address","name":"requestModule","type":"address"},{"internalType":"address","name":"responseModule","type":"address"},{"internalType":"address","name":"disputeModule","type":"address"},{"internalType":"address","name":"resolutionModule","type":"address"},{"internalType":"address","name":"finalityModule","type":"address"},{"internalType":"bytes","name":"requestModuleData","type":"bytes"},{"internalType":"bytes","name":"responseModuleData","type":"bytes"},{"internalType":"bytes","name":"disputeModuleData","type":"bytes"},{"internalType":"bytes","name":"resolutionModuleData","type":"bytes"},{"internalType":"bytes","name":"finalityModuleData","type":"bytes"}],"internalType":"struct IOracle.Request","name":"_request","type":"tuple"},{"components":[{"internalType":"address","name":"disputer","type":"address"},{"internalType":"address","name":"proposer","type":"address"},{"internalType":"bytes32","name":"responseId","type":"bytes32"},{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"internalType":"struct IOracle.Dispute","name":"_dispute","type":"tuple"}],"name":"pledgeAgainstDispute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint96","name":"nonce","type":"uint96"},{"internalType":"address","name":"requester","type":"address"},{"internalType":"address","name":"requestModule","type":"address"},{"internalType":"address","name":"responseModule","type":"address"},{"internalType":"address","name":"disputeModule","type":"address"},{"internalType":"address","name":"resolutionModule","type":"address"},{"internalType":"address","name":"finalityModule","type":"address"},{"internalType":"bytes","name":"requestModuleData","type":"bytes"},{"internalType":"bytes","name":"responseModuleData","type":"bytes"},{"internalType":"bytes","name":"disputeModuleData","type":"bytes"},{"internalType":"bytes","name":"resolutionModuleData","type":"bytes"},{"internalType":"bytes","name":"finalityModuleData","type":"bytes"}],"internalType":"struct IOracle.Request","name":"_request","type":"tuple"},{"components":[{"internalType":"address","name":"disputer","type":"address"},{"internalType":"address","name":"proposer","type":"address"},{"internalType":"bytes32","name":"responseId","type":"bytes32"},{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"internalType":"struct IOracle.Dispute","name":"_dispute","type":"tuple"}],"name":"pledgeForDispute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_requestId","type":"bytes32"},{"internalType":"address","name":"_pledger","type":"address"}],"name":"pledgesAgainstDispute","outputs":[{"internalType":"uint256","name":"pledges","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_requestId","type":"bytes32"},{"internalType":"address","name":"_pledger","type":"address"}],"name":"pledgesForDispute","outputs":[{"internalType":"uint256","name":"pledges","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint96","name":"nonce","type":"uint96"},{"internalType":"address","name":"requester","type":"address"},{"internalType":"address","name":"requestModule","type":"address"},{"internalType":"address","name":"responseModule","type":"address"},{"internalType":"address","name":"disputeModule","type":"address"},{"internalType":"address","name":"resolutionModule","type":"address"},{"internalType":"address","name":"finalityModule","type":"address"},{"internalType":"bytes","name":"requestModuleData","type":"bytes"},{"internalType":"bytes","name":"responseModuleData","type":"bytes"},{"internalType":"bytes","name":"disputeModuleData","type":"bytes"},{"internalType":"bytes","name":"resolutionModuleData","type":"bytes"},{"internalType":"bytes","name":"finalityModuleData","type":"bytes"}],"internalType":"struct IOracle.Request","name":"_request","type":"tuple"},{"components":[{"internalType":"address","name":"proposer","type":"address"},{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"bytes","name":"response","type":"bytes"}],"internalType":"struct IOracle.Response","name":"_response","type":"tuple"},{"components":[{"internalType":"address","name":"disputer","type":"address"},{"internalType":"address","name":"proposer","type":"address"},{"internalType":"bytes32","name":"responseId","type":"bytes32"},{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"internalType":"struct IOracle.Dispute","name":"_dispute","type":"tuple"}],"name":"settleBondEscalation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_encodedParameters","type":"bytes"}],"name":"validateParameters","outputs":[{"internalType":"bool","name":"_valid","type":"bool"}],"stateMutability":"pure","type":"function"}],"devdoc":{"events":{"BondEscalationStatusUpdated(bytes32,bytes32,uint8)":{"params":{"_disputeId":"The id of the dispute going through the bond escalation mechanism.","_requestId":"The id of the request associated with the bond escalation mechanism.","_status":"The new status."}},"DisputeStatusChanged(bytes32,(address,address,bytes32,bytes32),uint8)":{"params":{"_dispute":"The dispute","_disputeId":"The id of the dispute","_status":"The new status of the dispute"}},"PledgedAgainstDispute(bytes32,address,uint256)":{"params":{"_amount":"The amount pledged.","_disputeId":"The id of the dispute the pledger is pledging against.","_pledger":"The address of the pledger."}},"PledgedForDispute(bytes32,address,uint256)":{"params":{"_amount":"The amount pledged.","_disputeId":"The id of the dispute the pledger is pledging in favor of.","_pledger":"The address of the pledger."}},"RequestFinalized(bytes32,(address,bytes32,bytes),address)":{"params":{"_finalizer":"The address that initiated the finalization","_requestId":"The id of the request that was finalized","_response":"The final response"}},"ResponseDisputed(bytes32,bytes32,bytes32,(address,address,bytes32,bytes32),uint256)":{"params":{"_blockNumber":"The current block number","_dispute":"The dispute that is being created","_disputeId":"The id of the dispute","_responseId":"The id of the response disputed"}}},"kind":"dev","methods":{"decodeRequestData(bytes)":{"params":{"_data":"The encoded request parameters"},"returns":{"_params":"The struct containing the parameters for the request"}},"disputeResponse((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),(address,address,bytes32,bytes32))":{"details":"If this is the first dispute of the request and the bond escalation window is not over, it will start the bond escalation process. This function must be called through the Oracle.","params":{"_dispute":"The dispute created by the oracle.","_request":"The request data.","_response":"The response being disputed."}},"finalizeRequest((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),address)":{"params":{"_finalizer":"The address that initiated the finalization","_request":"The request being finalized","_response":"The final response"}},"getEscalation(bytes32)":{"params":{"_requestId":"The id of the request to get its escalation data."},"returns":{"_escalation":"The struct containing the escalation data."}},"moduleName()":{"returns":{"_moduleName":"The name of the module."}},"onDisputeStatusChange(bytes32,(uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),(address,address,bytes32,bytes32))":{"params":{"_dispute":"The dispute data.","_disputeId":"The ID of the dispute to update the status for.","_request":"The request data.","_response":"The disputed response."}},"pledgeAgainstDispute((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,address,bytes32,bytes32))":{"details":"Will revert if the disputeId is not going through the bond escalation process.If the bond escalation is not tied at the end of its deadline, a tying buffer is added to avoid scenarios where one of the parties breaks the tie very last second. During the tying buffer, the losing party can only tie, and once the escalation is tied no further funds can be pledged.","params":{"_dispute":"The dispute data.","_request":"The request data."}},"pledgeForDispute((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,address,bytes32,bytes32))":{"details":"If the bond escalation is not tied at the end of its deadline, a tying buffer is added to avoid scenarios where one of the parties breaks the tie very last second. During the tying buffer, the losing party can only tie, and once the escalation is tied no further funds can be pledged.","params":{"_dispute":"The dispute data.","_request":"The request data."}},"settleBondEscalation((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),(address,address,bytes32,bytes32))":{"details":"Can only be called if after the deadline + tyingBuffer window is over, the pledges weren\'t tied","params":{"_dispute":"The dispute data.","_request":"The request data.","_response":"The response data."}},"validateParameters(bytes)":{"params":{"_encodedParameters":"The encoded parameters for the request"},"returns":{"_valid":"Boolean indicating if the parameters are valid or not"}}},"stateVariables":{"pledgesAgainstDispute":{"params":{"_pledger":"The address of the pledger to get the pledges for.","_requestId":"The id of the request to get the pledges for."},"return":"pledges The number of pledges made by the pledger against the dispute.","returns":{"pledges":"The number of pledges made by the pledger against the dispute."}},"pledgesForDispute":{"params":{"_pledger":"The address of the pledger to get the pledges for.","_requestId":"The id of the request to get the pledges for."},"return":"pledges The number of pledges made by the pledger for the dispute.","returns":{"pledges":"The number of pledges made by the pledger for the dispute."}}},"version":1},"userdoc":{"errors":{"BondEscalationModule_BondEscalationCantBeSettled()":[{"notice":"Thrown when trying to settle a dispute that went through the bond escalation when it\'s not active."}],"BondEscalationModule_BondEscalationNotOver()":[{"notice":"Thrown when trying to escalate a dispute going through the bond escalation module before its deadline."}],"BondEscalationModule_BondEscalationOver()":[{"notice":"Thrown when trying to pledge after the bond escalation deadline."}],"BondEscalationModule_CanOnlySurpassByOnePledge()":[{"notice":"Thrown when trying to surpass the number of pledges of the other side by more than 1 in the bond escalation mechanism."}],"BondEscalationModule_CannotBreakTieDuringTyingBuffer()":[{"notice":"Thrown when trying to break a tie after the tying buffer has started."}],"BondEscalationModule_DisputeDoesNotExist()":[{"notice":"Thrown when trying to pledge for a dispute that does not exist"}],"BondEscalationModule_DisputeWindowOver()":[{"notice":"Thrown when trying to dispute a response after the dispute period expired."}],"BondEscalationModule_InvalidDispute()":[{"notice":"Thrown when trying to pledge for a dispute that is not going through the bond escalation mechanism."}],"BondEscalationModule_InvalidEscalationParameters()":[{"notice":"Thrown when trying to set up a request with invalid bond size or maximum amount of escalations."}],"BondEscalationModule_MaxNumberOfEscalationsReached()":[{"notice":"Thrown when the number of escalation pledges of a given dispute has reached its maximum."}],"BondEscalationModule_NotEscalatable()":[{"notice":"Thrown when trying to escalate a dispute going through the bond escalation process that is not tied or that is not active."}],"BondEscalationModule_ShouldBeEscalated()":[{"notice":"Thrown when trying to settle a bond escalation process that is not tied."}],"BondEscalationModule_ZeroValue()":[{"notice":"Thrown when the max number of escalations or the bond size is set to 0."}],"Module_OnlyOracle()":[{"notice":"Thrown when the caller is not the oracle"}],"Validator_InvalidDispute()":[{"notice":"Thrown when the dispute provided does not exist"}],"Validator_InvalidResponse()":[{"notice":"Thrown when the response provided does not exist"}]},"events":{"BondEscalationStatusUpdated(bytes32,bytes32,uint8)":{"notice":"The status of the bond escalation mechanism has been updated."},"DisputeStatusChanged(bytes32,(address,address,bytes32,bytes32),uint8)":{"notice":"Emitted when a dispute status is updated"},"PledgedAgainstDispute(bytes32,address,uint256)":{"notice":"A pledge has been made against a dispute."},"PledgedForDispute(bytes32,address,uint256)":{"notice":"A pledge has been made in favor of a dispute."},"RequestFinalized(bytes32,(address,bytes32,bytes),address)":{"notice":"Emitted when a request is finalized"},"ResponseDisputed(bytes32,bytes32,bytes32,(address,address,bytes32,bytes32),uint256)":{"notice":"Emitted when a response is disputed"}},"kind":"user","methods":{"ORACLE()":{"notice":"The oracle contract"},"decodeRequestData(bytes)":{"notice":"Returns the decoded data for a request"},"disputeResponse((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),(address,address,bytes32,bytes32))":{"notice":"Disputes a response"},"finalizeRequest((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),address)":{"notice":"Finalizes the request"},"getEscalation(bytes32)":{"notice":"Returns the escalation data for a request."},"moduleName()":{"notice":"Returns the name of the module."},"onDisputeStatusChange(bytes32,(uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),(address,address,bytes32,bytes32))":{"notice":"Updates the status of a given disputeId and pays the proposer and disputer accordingly. If this dispute has gone through the bond escalation mechanism, then it will pay the winning pledgers as well."},"pledgeAgainstDispute((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,address,bytes32,bytes32))":{"notice":"Pledges funds against a given disputeId during its bond escalation process."},"pledgeForDispute((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,address,bytes32,bytes32))":{"notice":"Bonds funds in favor of a given dispute during the bond escalation process."},"pledgesAgainstDispute(bytes32,address)":{"notice":"Returns the amount of pledges that a particular pledger has made against a given dispute."},"pledgesForDispute(bytes32,address)":{"notice":"Returns the amount of pledges that a particular pledger has made for a given dispute."},"settleBondEscalation((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),(address,address,bytes32,bytes32))":{"notice":"Settles the bond escalation process of a given requestId."},"validateParameters(bytes)":{"notice":"Validates parameters prior to creating a request"}},"version":1}},"settings":{"compilationTarget":{"solidity/contracts/modules/dispute/BondEscalationModule.sol":"BondEscalationModule"},"evmVersion":"paris","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":10000},"remappings":[":@defi-wonderland/=node_modules/@defi-wonderland/",":@openzeppelin/=node_modules/@openzeppelin/",":ds-test/=node_modules/ds-test/src/",":forge-std/=node_modules/forge-std/src/",":solmate/=node_modules/solmate/src/"]},"sources":{"node_modules/@defi-wonderland/prophet-core/solidity/contracts/Module.sol":{"keccak256":"0xf1cc2b38026d6ceac64603b09c495703b28bff3bb16759538328771583c55b8f","license":"MIT","urls":["bzz-raw://c494462ff30a687311169777253165ece60a7ab41a10befe5595c2d912610120","dweb:/ipfs/QmfWr8nPriXt6HrxbYx65xA2ACmJBXWBSUjCLrN783vErZ"]},"node_modules/@defi-wonderland/prophet-core/solidity/contracts/Validator.sol":{"keccak256":"0x5a06b99d5dd53c00c76a8195a72c0afaa801e343eae449d00c502571967343aa","license":"MIT","urls":["bzz-raw://f576bcad599cd37f6f34d9760a469dd4948872e38db74946947904d642a52b72","dweb:/ipfs/QmXAyxczdwmSFHoix1zQqdAtANf1uRfqTQZjBkDWfWmRE9"]},"node_modules/@defi-wonderland/prophet-core/solidity/interfaces/IModule.sol":{"keccak256":"0x68ee41846e0dc31a48b9e4fa1056f914748cec29c64e79272d994fcdf74277c9","license":"MIT","urls":["bzz-raw://3d22e0e329c145e6532f7a52baccb26ab3443d74a7d6573f6348fafb27ca91cd","dweb:/ipfs/QmQDx1aTsM7tCvvUAgPSmJp1xVYudvciNEvq6X1nLXwSnM"]},"node_modules/@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol":{"keccak256":"0xe209995220c3a9f21b9dc3ca218551a203b7312585de580f5b35f8056c8a1e43","license":"MIT","urls":["bzz-raw://f892e60fef98e11d7f52540e16b6cc1c0ff9329387ed69a3ac0240efce6c868f","dweb:/ipfs/QmNRXwSzcDCbq8WsjkTaoBFki8ZA1afqRGpsCqVswWmsvY"]},"node_modules/@defi-wonderland/prophet-core/solidity/interfaces/IValidator.sol":{"keccak256":"0x19495833d4bfbe88d44b7576f2b02b5a0bb9ffc2d91a86961b4065df64d054b9","license":"MIT","urls":["bzz-raw://ad23d158629b23dc31b9e2a4e75a4abf4b5cad40ee3e9f4f9efd9ae185ceec75","dweb:/ipfs/QmNWbbQaCS6dGcPiw49cJ7A7VaHUxNbEd5vvd4KcAgSxNX"]},"node_modules/@defi-wonderland/prophet-core/solidity/interfaces/modules/dispute/IDisputeModule.sol":{"keccak256":"0x105959eaa1caf78b7dfcc5685cbbfb0f765ba4ec8eea12af180309dd2c1894c7","license":"MIT","urls":["bzz-raw://e29ea2fe3abe20b25846828970a101ed3f2283f3b842e9dacf44e427f86d75dc","dweb:/ipfs/QmRYCzGN8qSW3RvqvANzFuX2SD1W9W69AcCAYnA1RQ4PU1"]},"node_modules/@defi-wonderland/prophet-core/solidity/libraries/ValidatorLib.sol":{"keccak256":"0x9b4ac36694e207c3b53e0369c8b7340864f807d4e07fb8042ef6ea414fcb4ea0","license":"MIT","urls":["bzz-raw://2e9c9845bcf35cfdf1a3450f46c59461cdc9aee95b98e1b34f11187b1b0ca3be","dweb:/ipfs/QmQJqsMzFN6FQeZvGj894mm7ckTqYkpvxpCHAKuY7PA5Dt"]},"node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol":{"keccak256":"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305","license":"MIT","urls":["bzz-raw://bd39944e8fc06be6dbe2dd1d8449b5336e23c6a7ba3e8e9ae5ae0f37f35283f5","dweb:/ipfs/QmPV3FGYjVwvKSgAXKUN3r9T9GwniZz83CxBpM7vyj2G53"]},"node_modules/solmate/src/utils/FixedPointMathLib.sol":{"keccak256":"0x1b62af9baf5b8e991ed7531bc87f45550ba9d61e8dbff5caf237ccaf3a3fd843","license":"AGPL-3.0-only","urls":["bzz-raw://b7b38b977c5305b18ceefbeed4c9ceaaaefa419b520de62de6604ea661f8c0a9","dweb:/ipfs/QmecMRzgfMyDVa2pvBqMMDLYBappaj7Aa3qcMoQYEQrhWi"]},"solidity/contracts/modules/dispute/BondEscalationModule.sol":{"keccak256":"0xca5bab50973326f18e773eabf1943a6ba87cb012eaccd8764cb2fe871500bff9","license":"MIT","urls":["bzz-raw://50e1c4811d0e8e95e8955e772c6d081d9bc6447b8517ac946a26ae043077a765","dweb:/ipfs/QmaNYzCmhtkV9voi4G7dxnu7shfmk88iKtdwp8PVdEHZpQ"]},"solidity/interfaces/extensions/IAccountingExtension.sol":{"keccak256":"0xf5a6798f05097db052b75e3863b744acffa3553f360a937769cf48085df03372","license":"MIT","urls":["bzz-raw://941a90aa620ba7f0719adcf816cb3f1cf2614601165f83024f85320f51de0a64","dweb:/ipfs/QmZrHjveVuVBXz8GUBec3tDGNYRrF4YFyfcHCpQTfGVfF4"]},"solidity/interfaces/extensions/IBondEscalationAccounting.sol":{"keccak256":"0xd015b2ae12f7bfaacfeb44a80a110f712e2695c8e4b55e44f198304a49cecc0d","license":"MIT","urls":["bzz-raw://76bd7aba416cb7f6259565477c03f47b1cfd63ff873c9952ddddb10ddd1b1e0e","dweb:/ipfs/QmSwTmwTmgusGrXgcyg5t66y2FR2sqYQwKWcozBLSqmGTo"]},"solidity/interfaces/modules/dispute/IBondEscalationModule.sol":{"keccak256":"0xbb9c791dd188b144632b6cfdc180dd42c4761d6ea2193ed93021a82abd055020","license":"MIT","urls":["bzz-raw://b962d6df377cdb83187d35daf3c7faa8758ec13f6d53a01d8d6c874f9ccb870a","dweb:/ipfs/QmQoadeFhNndmE4JEzxpcr6YgHUKMPUoy1Go22hZWJk36A"]}},"version":1}', - metadata: { - compiler: { version: "0.8.19+commit.7dd6d404" }, - language: "Solidity", - output: { - abi: [ - { - inputs: [ - { internalType: "contract IOracle", name: "_oracle", type: "address" }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - type: "error", - name: "BondEscalationModule_BondEscalationCantBeSettled", - }, - { - inputs: [], - type: "error", - name: "BondEscalationModule_BondEscalationNotOver", - }, - { inputs: [], type: "error", name: "BondEscalationModule_BondEscalationOver" }, - { - inputs: [], - type: "error", - name: "BondEscalationModule_CanOnlySurpassByOnePledge", - }, - { - inputs: [], - type: "error", - name: "BondEscalationModule_CannotBreakTieDuringTyingBuffer", - }, - { inputs: [], type: "error", name: "BondEscalationModule_DisputeDoesNotExist" }, - { inputs: [], type: "error", name: "BondEscalationModule_DisputeWindowOver" }, - { inputs: [], type: "error", name: "BondEscalationModule_InvalidDispute" }, - { - inputs: [], - type: "error", - name: "BondEscalationModule_InvalidEscalationParameters", - }, - { - inputs: [], - type: "error", - name: "BondEscalationModule_MaxNumberOfEscalationsReached", - }, - { inputs: [], type: "error", name: "BondEscalationModule_NotEscalatable" }, - { inputs: [], type: "error", name: "BondEscalationModule_ShouldBeEscalated" }, - { inputs: [], type: "error", name: "BondEscalationModule_ZeroValue" }, - { inputs: [], type: "error", name: "Module_OnlyOracle" }, - { inputs: [], type: "error", name: "Validator_InvalidDispute" }, - { inputs: [], type: "error", name: "Validator_InvalidResponse" }, - { - inputs: [ - { - internalType: "bytes32", - name: "_requestId", - type: "bytes32", - indexed: true, - }, - { - internalType: "bytes32", - name: "_disputeId", - type: "bytes32", - indexed: true, - }, - { - internalType: "enum IBondEscalationModule.BondEscalationStatus", - name: "_status", - type: "uint8", - indexed: false, - }, - ], - type: "event", - name: "BondEscalationStatusUpdated", - anonymous: false, - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_disputeId", - type: "bytes32", - indexed: true, - }, - { - internalType: "struct IOracle.Dispute", - name: "_dispute", - type: "tuple", - components: [ - { internalType: "address", name: "disputer", type: "address" }, - { internalType: "address", name: "proposer", type: "address" }, - { - internalType: "bytes32", - name: "responseId", - type: "bytes32", - }, - { internalType: "bytes32", name: "requestId", type: "bytes32" }, - ], - indexed: false, - }, - { - internalType: "enum IOracle.DisputeStatus", - name: "_status", - type: "uint8", - indexed: false, - }, - ], - type: "event", - name: "DisputeStatusChanged", - anonymous: false, - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_disputeId", - type: "bytes32", - indexed: true, - }, - { - internalType: "address", - name: "_pledger", - type: "address", - indexed: true, - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - indexed: true, - }, - ], - type: "event", - name: "PledgedAgainstDispute", - anonymous: false, - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_disputeId", - type: "bytes32", - indexed: true, - }, - { - internalType: "address", - name: "_pledger", - type: "address", - indexed: true, - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - indexed: true, - }, - ], - type: "event", - name: "PledgedForDispute", - anonymous: false, - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_requestId", - type: "bytes32", - indexed: true, - }, - { - internalType: "struct IOracle.Response", - name: "_response", - type: "tuple", - components: [ - { internalType: "address", name: "proposer", type: "address" }, - { internalType: "bytes32", name: "requestId", type: "bytes32" }, - { internalType: "bytes", name: "response", type: "bytes" }, - ], - indexed: false, - }, - { - internalType: "address", - name: "_finalizer", - type: "address", - indexed: false, - }, - ], - type: "event", - name: "RequestFinalized", - anonymous: false, - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_requestId", - type: "bytes32", - indexed: true, - }, - { - internalType: "bytes32", - name: "_responseId", - type: "bytes32", - indexed: true, - }, - { - internalType: "bytes32", - name: "_disputeId", - type: "bytes32", - indexed: true, - }, - { - internalType: "struct IOracle.Dispute", - name: "_dispute", - type: "tuple", - components: [ - { internalType: "address", name: "disputer", type: "address" }, - { internalType: "address", name: "proposer", type: "address" }, - { - internalType: "bytes32", - name: "responseId", - type: "bytes32", - }, - { internalType: "bytes32", name: "requestId", type: "bytes32" }, - ], - indexed: false, - }, - { - internalType: "uint256", - name: "_blockNumber", - type: "uint256", - indexed: false, - }, - ], - type: "event", - name: "ResponseDisputed", - anonymous: false, - }, - { - inputs: [], - stateMutability: "view", - type: "function", - name: "ORACLE", - outputs: [{ internalType: "contract IOracle", name: "", type: "address" }], - }, - { - inputs: [{ internalType: "bytes", name: "_data", type: "bytes" }], - stateMutability: "pure", - type: "function", - name: "decodeRequestData", - outputs: [ - { - internalType: "struct IBondEscalationModule.RequestParameters", - name: "_params", - type: "tuple", - components: [ - { - internalType: "contract IBondEscalationAccounting", - name: "accountingExtension", - type: "address", - }, - { - internalType: "contract IERC20", - name: "bondToken", - type: "address", - }, - { internalType: "uint256", name: "bondSize", type: "uint256" }, - { - internalType: "uint256", - name: "maxNumberOfEscalations", - type: "uint256", - }, - { - internalType: "uint256", - name: "bondEscalationDeadline", - type: "uint256", - }, - { - internalType: "uint256", - name: "tyingBuffer", - type: "uint256", - }, - { - internalType: "uint256", - name: "disputeWindow", - type: "uint256", - }, - ], - }, - ], - }, - { - inputs: [ - { - internalType: "struct IOracle.Request", - name: "_request", - type: "tuple", - components: [ - { internalType: "uint96", name: "nonce", type: "uint96" }, - { internalType: "address", name: "requester", type: "address" }, - { - internalType: "address", - name: "requestModule", - type: "address", - }, - { - internalType: "address", - name: "responseModule", - type: "address", - }, - { - internalType: "address", - name: "disputeModule", - type: "address", - }, - { - internalType: "address", - name: "resolutionModule", - type: "address", - }, - { - internalType: "address", - name: "finalityModule", - type: "address", - }, - { - internalType: "bytes", - name: "requestModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "responseModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "disputeModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "resolutionModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "finalityModuleData", - type: "bytes", - }, - ], - }, - { - internalType: "struct IOracle.Response", - name: "_response", - type: "tuple", - components: [ - { internalType: "address", name: "proposer", type: "address" }, - { internalType: "bytes32", name: "requestId", type: "bytes32" }, - { internalType: "bytes", name: "response", type: "bytes" }, - ], - }, - { - internalType: "struct IOracle.Dispute", - name: "_dispute", - type: "tuple", - components: [ - { internalType: "address", name: "disputer", type: "address" }, - { internalType: "address", name: "proposer", type: "address" }, - { - internalType: "bytes32", - name: "responseId", - type: "bytes32", - }, - { internalType: "bytes32", name: "requestId", type: "bytes32" }, - ], - }, - ], - stateMutability: "nonpayable", - type: "function", - name: "disputeResponse", - }, - { - inputs: [ - { - internalType: "struct IOracle.Request", - name: "_request", - type: "tuple", - components: [ - { internalType: "uint96", name: "nonce", type: "uint96" }, - { internalType: "address", name: "requester", type: "address" }, - { - internalType: "address", - name: "requestModule", - type: "address", - }, - { - internalType: "address", - name: "responseModule", - type: "address", - }, - { - internalType: "address", - name: "disputeModule", - type: "address", - }, - { - internalType: "address", - name: "resolutionModule", - type: "address", - }, - { - internalType: "address", - name: "finalityModule", - type: "address", - }, - { - internalType: "bytes", - name: "requestModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "responseModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "disputeModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "resolutionModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "finalityModuleData", - type: "bytes", - }, - ], - }, - { - internalType: "struct IOracle.Response", - name: "_response", - type: "tuple", - components: [ - { internalType: "address", name: "proposer", type: "address" }, - { internalType: "bytes32", name: "requestId", type: "bytes32" }, - { internalType: "bytes", name: "response", type: "bytes" }, - ], - }, - { internalType: "address", name: "_finalizer", type: "address" }, - ], - stateMutability: "nonpayable", - type: "function", - name: "finalizeRequest", - }, - { - inputs: [{ internalType: "bytes32", name: "_requestId", type: "bytes32" }], - stateMutability: "view", - type: "function", - name: "getEscalation", - outputs: [ - { - internalType: "struct IBondEscalationModule.BondEscalation", - name: "_escalation", - type: "tuple", - components: [ - { internalType: "bytes32", name: "disputeId", type: "bytes32" }, - { - internalType: - "enum IBondEscalationModule.BondEscalationStatus", - name: "status", - type: "uint8", - }, - { - internalType: "uint256", - name: "amountOfPledgesForDispute", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOfPledgesAgainstDispute", - type: "uint256", - }, - ], - }, - ], - }, - { - inputs: [], - stateMutability: "pure", - type: "function", - name: "moduleName", - outputs: [{ internalType: "string", name: "_moduleName", type: "string" }], - }, - { - inputs: [ - { internalType: "bytes32", name: "_disputeId", type: "bytes32" }, - { - internalType: "struct IOracle.Request", - name: "_request", - type: "tuple", - components: [ - { internalType: "uint96", name: "nonce", type: "uint96" }, - { internalType: "address", name: "requester", type: "address" }, - { - internalType: "address", - name: "requestModule", - type: "address", - }, - { - internalType: "address", - name: "responseModule", - type: "address", - }, - { - internalType: "address", - name: "disputeModule", - type: "address", - }, - { - internalType: "address", - name: "resolutionModule", - type: "address", - }, - { - internalType: "address", - name: "finalityModule", - type: "address", - }, - { - internalType: "bytes", - name: "requestModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "responseModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "disputeModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "resolutionModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "finalityModuleData", - type: "bytes", - }, - ], - }, - { - internalType: "struct IOracle.Response", - name: "", - type: "tuple", - components: [ - { internalType: "address", name: "proposer", type: "address" }, - { internalType: "bytes32", name: "requestId", type: "bytes32" }, - { internalType: "bytes", name: "response", type: "bytes" }, - ], - }, - { - internalType: "struct IOracle.Dispute", - name: "_dispute", - type: "tuple", - components: [ - { internalType: "address", name: "disputer", type: "address" }, - { internalType: "address", name: "proposer", type: "address" }, - { - internalType: "bytes32", - name: "responseId", - type: "bytes32", - }, - { internalType: "bytes32", name: "requestId", type: "bytes32" }, - ], - }, - ], - stateMutability: "nonpayable", - type: "function", - name: "onDisputeStatusChange", - }, - { - inputs: [ - { - internalType: "struct IOracle.Request", - name: "_request", - type: "tuple", - components: [ - { internalType: "uint96", name: "nonce", type: "uint96" }, - { internalType: "address", name: "requester", type: "address" }, - { - internalType: "address", - name: "requestModule", - type: "address", - }, - { - internalType: "address", - name: "responseModule", - type: "address", - }, - { - internalType: "address", - name: "disputeModule", - type: "address", - }, - { - internalType: "address", - name: "resolutionModule", - type: "address", - }, - { - internalType: "address", - name: "finalityModule", - type: "address", - }, - { - internalType: "bytes", - name: "requestModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "responseModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "disputeModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "resolutionModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "finalityModuleData", - type: "bytes", - }, - ], - }, - { - internalType: "struct IOracle.Dispute", - name: "_dispute", - type: "tuple", - components: [ - { internalType: "address", name: "disputer", type: "address" }, - { internalType: "address", name: "proposer", type: "address" }, - { - internalType: "bytes32", - name: "responseId", - type: "bytes32", - }, - { internalType: "bytes32", name: "requestId", type: "bytes32" }, - ], - }, - ], - stateMutability: "nonpayable", - type: "function", - name: "pledgeAgainstDispute", - }, - { - inputs: [ - { - internalType: "struct IOracle.Request", - name: "_request", - type: "tuple", - components: [ - { internalType: "uint96", name: "nonce", type: "uint96" }, - { internalType: "address", name: "requester", type: "address" }, - { - internalType: "address", - name: "requestModule", - type: "address", - }, - { - internalType: "address", - name: "responseModule", - type: "address", - }, - { - internalType: "address", - name: "disputeModule", - type: "address", - }, - { - internalType: "address", - name: "resolutionModule", - type: "address", - }, - { - internalType: "address", - name: "finalityModule", - type: "address", - }, - { - internalType: "bytes", - name: "requestModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "responseModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "disputeModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "resolutionModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "finalityModuleData", - type: "bytes", - }, - ], - }, - { - internalType: "struct IOracle.Dispute", - name: "_dispute", - type: "tuple", - components: [ - { internalType: "address", name: "disputer", type: "address" }, - { internalType: "address", name: "proposer", type: "address" }, - { - internalType: "bytes32", - name: "responseId", - type: "bytes32", - }, - { internalType: "bytes32", name: "requestId", type: "bytes32" }, - ], - }, - ], - stateMutability: "nonpayable", - type: "function", - name: "pledgeForDispute", - }, - { - inputs: [ - { internalType: "bytes32", name: "_requestId", type: "bytes32" }, - { internalType: "address", name: "_pledger", type: "address" }, - ], - stateMutability: "view", - type: "function", - name: "pledgesAgainstDispute", - outputs: [{ internalType: "uint256", name: "pledges", type: "uint256" }], - }, - { - inputs: [ - { internalType: "bytes32", name: "_requestId", type: "bytes32" }, - { internalType: "address", name: "_pledger", type: "address" }, - ], - stateMutability: "view", - type: "function", - name: "pledgesForDispute", - outputs: [{ internalType: "uint256", name: "pledges", type: "uint256" }], - }, - { - inputs: [ - { - internalType: "struct IOracle.Request", - name: "_request", - type: "tuple", - components: [ - { internalType: "uint96", name: "nonce", type: "uint96" }, - { internalType: "address", name: "requester", type: "address" }, - { - internalType: "address", - name: "requestModule", - type: "address", - }, - { - internalType: "address", - name: "responseModule", - type: "address", - }, - { - internalType: "address", - name: "disputeModule", - type: "address", - }, - { - internalType: "address", - name: "resolutionModule", - type: "address", - }, - { - internalType: "address", - name: "finalityModule", - type: "address", - }, - { - internalType: "bytes", - name: "requestModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "responseModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "disputeModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "resolutionModuleData", - type: "bytes", - }, - { - internalType: "bytes", - name: "finalityModuleData", - type: "bytes", - }, - ], - }, - { - internalType: "struct IOracle.Response", - name: "_response", - type: "tuple", - components: [ - { internalType: "address", name: "proposer", type: "address" }, - { internalType: "bytes32", name: "requestId", type: "bytes32" }, - { internalType: "bytes", name: "response", type: "bytes" }, - ], - }, - { - internalType: "struct IOracle.Dispute", - name: "_dispute", - type: "tuple", - components: [ - { internalType: "address", name: "disputer", type: "address" }, - { internalType: "address", name: "proposer", type: "address" }, - { - internalType: "bytes32", - name: "responseId", - type: "bytes32", - }, - { internalType: "bytes32", name: "requestId", type: "bytes32" }, - ], - }, - ], - stateMutability: "nonpayable", - type: "function", - name: "settleBondEscalation", - }, - { - inputs: [ - { internalType: "bytes", name: "_encodedParameters", type: "bytes" }, - ], - stateMutability: "pure", - type: "function", - name: "validateParameters", - outputs: [{ internalType: "bool", name: "_valid", type: "bool" }], - }, - ], - devdoc: { - kind: "dev", - methods: { - "decodeRequestData(bytes)": { - params: { _data: "The encoded request parameters" }, - returns: { - _params: "The struct containing the parameters for the request", - }, - }, - "disputeResponse((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),(address,address,bytes32,bytes32))": - { - details: - "If this is the first dispute of the request and the bond escalation window is not over, it will start the bond escalation process. This function must be called through the Oracle.", - params: { - _dispute: "The dispute created by the oracle.", - _request: "The request data.", - _response: "The response being disputed.", - }, - }, - "finalizeRequest((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),address)": - { - params: { - _finalizer: "The address that initiated the finalization", - _request: "The request being finalized", - _response: "The final response", - }, - }, - "getEscalation(bytes32)": { - params: { - _requestId: "The id of the request to get its escalation data.", - }, - returns: { _escalation: "The struct containing the escalation data." }, - }, - "moduleName()": { returns: { _moduleName: "The name of the module." } }, - "onDisputeStatusChange(bytes32,(uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),(address,address,bytes32,bytes32))": - { - params: { - _dispute: "The dispute data.", - _disputeId: "The ID of the dispute to update the status for.", - _request: "The request data.", - _response: "The disputed response.", - }, - }, - "pledgeAgainstDispute((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,address,bytes32,bytes32))": - { - details: - "Will revert if the disputeId is not going through the bond escalation process.If the bond escalation is not tied at the end of its deadline, a tying buffer is added to avoid scenarios where one of the parties breaks the tie very last second. During the tying buffer, the losing party can only tie, and once the escalation is tied no further funds can be pledged.", - params: { - _dispute: "The dispute data.", - _request: "The request data.", - }, - }, - "pledgeForDispute((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,address,bytes32,bytes32))": - { - details: - "If the bond escalation is not tied at the end of its deadline, a tying buffer is added to avoid scenarios where one of the parties breaks the tie very last second. During the tying buffer, the losing party can only tie, and once the escalation is tied no further funds can be pledged.", - params: { - _dispute: "The dispute data.", - _request: "The request data.", - }, - }, - "settleBondEscalation((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),(address,address,bytes32,bytes32))": - { - details: - "Can only be called if after the deadline + tyingBuffer window is over, the pledges weren't tied", - params: { - _dispute: "The dispute data.", - _request: "The request data.", - _response: "The response data.", - }, - }, - "validateParameters(bytes)": { - params: { - _encodedParameters: "The encoded parameters for the request", - }, - returns: { - _valid: "Boolean indicating if the parameters are valid or not", - }, - }, - }, - version: 1, - }, - userdoc: { - kind: "user", - methods: { - "ORACLE()": { notice: "The oracle contract" }, - "decodeRequestData(bytes)": { - notice: "Returns the decoded data for a request", - }, - "disputeResponse((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),(address,address,bytes32,bytes32))": - { notice: "Disputes a response" }, - "finalizeRequest((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),address)": - { notice: "Finalizes the request" }, - "getEscalation(bytes32)": { - notice: "Returns the escalation data for a request.", - }, - "moduleName()": { notice: "Returns the name of the module." }, - "onDisputeStatusChange(bytes32,(uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),(address,address,bytes32,bytes32))": - { - notice: "Updates the status of a given disputeId and pays the proposer and disputer accordingly. If this dispute has gone through the bond escalation mechanism, then it will pay the winning pledgers as well.", - }, - "pledgeAgainstDispute((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,address,bytes32,bytes32))": - { - notice: "Pledges funds against a given disputeId during its bond escalation process.", - }, - "pledgeForDispute((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,address,bytes32,bytes32))": - { - notice: "Bonds funds in favor of a given dispute during the bond escalation process.", - }, - "pledgesAgainstDispute(bytes32,address)": { - notice: "Returns the amount of pledges that a particular pledger has made against a given dispute.", - }, - "pledgesForDispute(bytes32,address)": { - notice: "Returns the amount of pledges that a particular pledger has made for a given dispute.", - }, - "settleBondEscalation((uint96,address,address,address,address,address,address,bytes,bytes,bytes,bytes,bytes),(address,bytes32,bytes),(address,address,bytes32,bytes32))": - { notice: "Settles the bond escalation process of a given requestId." }, - "validateParameters(bytes)": { - notice: "Validates parameters prior to creating a request", - }, - }, - version: 1, - }, - }, - settings: { - remappings: [ - "@defi-wonderland/=node_modules/@defi-wonderland/", - "@openzeppelin/=node_modules/@openzeppelin/", - "ds-test/=node_modules/ds-test/src/", - "forge-std/=node_modules/forge-std/src/", - "solmate/=node_modules/solmate/src/", - ], - optimizer: { enabled: true, runs: 10000 }, - metadata: { bytecodeHash: "ipfs" }, - compilationTarget: { - "solidity/contracts/modules/dispute/BondEscalationModule.sol": - "BondEscalationModule", - }, - evmVersion: "paris", - libraries: {}, - }, - sources: { - "node_modules/@defi-wonderland/prophet-core/solidity/contracts/Module.sol": { - keccak256: "0xf1cc2b38026d6ceac64603b09c495703b28bff3bb16759538328771583c55b8f", - urls: [ - "bzz-raw://c494462ff30a687311169777253165ece60a7ab41a10befe5595c2d912610120", - "dweb:/ipfs/QmfWr8nPriXt6HrxbYx65xA2ACmJBXWBSUjCLrN783vErZ", - ], - license: "MIT", - }, - "node_modules/@defi-wonderland/prophet-core/solidity/contracts/Validator.sol": { - keccak256: "0x5a06b99d5dd53c00c76a8195a72c0afaa801e343eae449d00c502571967343aa", - urls: [ - "bzz-raw://f576bcad599cd37f6f34d9760a469dd4948872e38db74946947904d642a52b72", - "dweb:/ipfs/QmXAyxczdwmSFHoix1zQqdAtANf1uRfqTQZjBkDWfWmRE9", - ], - license: "MIT", - }, - "node_modules/@defi-wonderland/prophet-core/solidity/interfaces/IModule.sol": { - keccak256: "0x68ee41846e0dc31a48b9e4fa1056f914748cec29c64e79272d994fcdf74277c9", - urls: [ - "bzz-raw://3d22e0e329c145e6532f7a52baccb26ab3443d74a7d6573f6348fafb27ca91cd", - "dweb:/ipfs/QmQDx1aTsM7tCvvUAgPSmJp1xVYudvciNEvq6X1nLXwSnM", - ], - license: "MIT", - }, - "node_modules/@defi-wonderland/prophet-core/solidity/interfaces/IOracle.sol": { - keccak256: "0xe209995220c3a9f21b9dc3ca218551a203b7312585de580f5b35f8056c8a1e43", - urls: [ - "bzz-raw://f892e60fef98e11d7f52540e16b6cc1c0ff9329387ed69a3ac0240efce6c868f", - "dweb:/ipfs/QmNRXwSzcDCbq8WsjkTaoBFki8ZA1afqRGpsCqVswWmsvY", - ], - license: "MIT", - }, - "node_modules/@defi-wonderland/prophet-core/solidity/interfaces/IValidator.sol": { - keccak256: "0x19495833d4bfbe88d44b7576f2b02b5a0bb9ffc2d91a86961b4065df64d054b9", - urls: [ - "bzz-raw://ad23d158629b23dc31b9e2a4e75a4abf4b5cad40ee3e9f4f9efd9ae185ceec75", - "dweb:/ipfs/QmNWbbQaCS6dGcPiw49cJ7A7VaHUxNbEd5vvd4KcAgSxNX", - ], - license: "MIT", - }, - "node_modules/@defi-wonderland/prophet-core/solidity/interfaces/modules/dispute/IDisputeModule.sol": - { - keccak256: - "0x105959eaa1caf78b7dfcc5685cbbfb0f765ba4ec8eea12af180309dd2c1894c7", - urls: [ - "bzz-raw://e29ea2fe3abe20b25846828970a101ed3f2283f3b842e9dacf44e427f86d75dc", - "dweb:/ipfs/QmRYCzGN8qSW3RvqvANzFuX2SD1W9W69AcCAYnA1RQ4PU1", - ], - license: "MIT", - }, - "node_modules/@defi-wonderland/prophet-core/solidity/libraries/ValidatorLib.sol": { - keccak256: "0x9b4ac36694e207c3b53e0369c8b7340864f807d4e07fb8042ef6ea414fcb4ea0", - urls: [ - "bzz-raw://2e9c9845bcf35cfdf1a3450f46c59461cdc9aee95b98e1b34f11187b1b0ca3be", - "dweb:/ipfs/QmQJqsMzFN6FQeZvGj894mm7ckTqYkpvxpCHAKuY7PA5Dt", - ], - license: "MIT", - }, - "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol": { - keccak256: "0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305", - urls: [ - "bzz-raw://bd39944e8fc06be6dbe2dd1d8449b5336e23c6a7ba3e8e9ae5ae0f37f35283f5", - "dweb:/ipfs/QmPV3FGYjVwvKSgAXKUN3r9T9GwniZz83CxBpM7vyj2G53", - ], - license: "MIT", - }, - "node_modules/solmate/src/utils/FixedPointMathLib.sol": { - keccak256: "0x1b62af9baf5b8e991ed7531bc87f45550ba9d61e8dbff5caf237ccaf3a3fd843", - urls: [ - "bzz-raw://b7b38b977c5305b18ceefbeed4c9ceaaaefa419b520de62de6604ea661f8c0a9", - "dweb:/ipfs/QmecMRzgfMyDVa2pvBqMMDLYBappaj7Aa3qcMoQYEQrhWi", - ], - license: "AGPL-3.0-only", - }, - "solidity/contracts/modules/dispute/BondEscalationModule.sol": { - keccak256: "0xca5bab50973326f18e773eabf1943a6ba87cb012eaccd8764cb2fe871500bff9", - urls: [ - "bzz-raw://50e1c4811d0e8e95e8955e772c6d081d9bc6447b8517ac946a26ae043077a765", - "dweb:/ipfs/QmaNYzCmhtkV9voi4G7dxnu7shfmk88iKtdwp8PVdEHZpQ", - ], - license: "MIT", - }, - "solidity/interfaces/extensions/IAccountingExtension.sol": { - keccak256: "0xf5a6798f05097db052b75e3863b744acffa3553f360a937769cf48085df03372", - urls: [ - "bzz-raw://941a90aa620ba7f0719adcf816cb3f1cf2614601165f83024f85320f51de0a64", - "dweb:/ipfs/QmZrHjveVuVBXz8GUBec3tDGNYRrF4YFyfcHCpQTfGVfF4", - ], - license: "MIT", - }, - "solidity/interfaces/extensions/IBondEscalationAccounting.sol": { - keccak256: "0xd015b2ae12f7bfaacfeb44a80a110f712e2695c8e4b55e44f198304a49cecc0d", - urls: [ - "bzz-raw://76bd7aba416cb7f6259565477c03f47b1cfd63ff873c9952ddddb10ddd1b1e0e", - "dweb:/ipfs/QmSwTmwTmgusGrXgcyg5t66y2FR2sqYQwKWcozBLSqmGTo", - ], - license: "MIT", - }, - "solidity/interfaces/modules/dispute/IBondEscalationModule.sol": { - keccak256: "0xbb9c791dd188b144632b6cfdc180dd42c4761d6ea2193ed93021a82abd055020", - urls: [ - "bzz-raw://b962d6df377cdb83187d35daf3c7faa8758ec13f6d53a01d8d6c874f9ccb870a", - "dweb:/ipfs/QmQoadeFhNndmE4JEzxpcr6YgHUKMPUoy1Go22hZWJk36A", - ], - license: "MIT", - }, - }, - version: 1, - }, id: 51, }, ] as const;