From 4c9c71d97fbd57fd8775b0ea4da380f509aaf3d5 Mon Sep 17 00:00:00 2001 From: Spablob Date: Mon, 2 Dec 2024 15:08:08 +0000 Subject: [PATCH] name mapping --- contracts/modules/dispute/DisputeModule.sol | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/contracts/modules/dispute/DisputeModule.sol b/contracts/modules/dispute/DisputeModule.sol index 6826dfb4..e798661c 100644 --- a/contracts/modules/dispute/DisputeModule.sol +++ b/contracts/modules/dispute/DisputeModule.sol @@ -47,14 +47,14 @@ contract DisputeModule is uint256 disputeCounter; uint256 arbitrationPolicyCooldown; address baseArbitrationPolicy; - mapping(uint256 => Dispute) disputes; - mapping(bytes32 => bool) isWhitelistedDisputeTag; - mapping(address => bool) isWhitelistedArbitrationPolicy; - mapping(address => mapping(address => bool)) isWhitelistedArbitrationRelayer; - mapping(address => address) arbitrationPolicies; - mapping(address => address) nextArbitrationPolicies; - mapping(address => uint256) nextArbitrationUpdateTimestamps; - mapping(address => uint256) successfulDisputesPerIp; + mapping(uint256 disputeId => Dispute) disputes; + mapping(bytes32 tag => bool) isWhitelistedDisputeTag; + mapping(address arbitrationPolicy => bool) isWhitelistedArbitrationPolicy; + mapping(address arbitrationPolicy => mapping(address relayer => bool)) isWhitelistedArbitrationRelayer; + mapping(address ipId => address) arbitrationPolicies; + mapping(address ipId => address) nextArbitrationPolicies; + mapping(address ipId => uint256) nextArbitrationUpdateTimestamps; + mapping(address ipId => uint256) successfulDisputesPerIp; } // keccak256(abi.encode(uint256(keccak256("story-protocol.DisputeModule")) - 1)) & ~bytes32(uint256(0xff));