Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ src = 'src'
out = 'out'
libs = ['../node_modules', 'lib']

[lint]
severity = ['high', 'medium']

[rpc_endpoints]
arbitrumSepolia = "https://sepolia-rollup.arbitrum.io/rpc"
arbitrum = "https://arb1.arbitrum.io/rpc"
Expand Down
2 changes: 0 additions & 2 deletions contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@
"watch": "hardhat watch",
"natspec-smells": "natspec-smells",
"docgen": "hardhat docgen",
"docserve": "scripts/docPreprocess.sh && forge doc --serve",
"docbuild": "scripts/docPreprocess.sh && forge doc --build --out dist && scripts/docPostprocess.sh",
"populate:courts:devnet": "hardhat populate:courts --from v2_devnet --network arbitrumSepoliaDevnet",
"populate:courts:testnet": "hardhat populate:courts --from v2_testnet --network arbitrumSepolia",
"populate:courts:mainnet": "hardhat populate:courts --from v2_mainnet --network arbitrum",
Expand Down
15 changes: 6 additions & 9 deletions contracts/src/arbitration/DisputeTemplateRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ import "../proxy/Initializable.sol";
import "./interfaces/IDisputeTemplateRegistry.sol";

/// @title Dispute Template Registry
/// @dev A contract to maintain a registry of dispute templates.
/// @notice A contract to maintain a registry of dispute templates.
contract DisputeTemplateRegistry is IDisputeTemplateRegistry, UUPSProxiable, Initializable {
string public constant override version = "2.0.0";

// ************************************* //
// * Storage * //
// ************************************* //

/// @dev The owner of the contract.
/// @notice The owner of the contract.
address public owner;

/// @dev The number of templates.
/// @notice The number of templates.
uint256 public templates;

// ************************************* //
Expand All @@ -38,7 +38,7 @@ contract DisputeTemplateRegistry is IDisputeTemplateRegistry, UUPSProxiable, Ini
_disableInitializers();
}

/// @dev Initializer
/// @notice Initializer
/// @param _owner Owner of the contract.
function initialize(address _owner) external initializer {
owner = _owner;
Expand All @@ -54,7 +54,7 @@ contract DisputeTemplateRegistry is IDisputeTemplateRegistry, UUPSProxiable, Ini
// NOP
}

/// @dev Changes the owner of the contract.
/// @notice Changes the owner of the contract.
/// @param _owner The new owner.
function changeOwner(address _owner) external onlyByOwner {
owner = _owner;
Expand All @@ -64,10 +64,7 @@ contract DisputeTemplateRegistry is IDisputeTemplateRegistry, UUPSProxiable, Ini
// * State Modifiers * //
// ************************************* //

/// @dev Registers a new dispute template.
/// @param _templateTag The tag of the template (optional).
/// @param _templateData The data of the template.
/// @param _templateDataMappings The data mappings of the template.
/// @inheritdoc IDisputeTemplateRegistry
function setDisputeTemplate(
string memory _templateTag,
string memory _templateData,
Expand Down
Loading
Loading