Skip to content

Commit

Permalink
add ISemver.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
iteyelmp committed Aug 28, 2024
1 parent e091dc2 commit c728155
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/ERC5018.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ pragma solidity ^0.8.0;
import "./IERC5018.sol";
import "./LargeStorageManager.sol";
import "./BlobStorageManager.sol";
import "./ISemver.sol";

contract ERC5018 is IERC5018, LargeStorageManager, BlobStorageManager {
contract ERC5018 is LargeStorageManager, BlobStorageManager, IERC5018, ISemver {

enum StorageMode {
Uninitialized,
Expand Down
13 changes: 13 additions & 0 deletions contracts/ISemver.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title ISemver
/// @notice ISemver is a simple contract for ensuring that contracts are
/// versioned using semantic versioning.
interface ISemver {
/// @notice Getter for the semantic version of the contract. This is not
/// meant to be used onchain but instead meant to be used by offchain
/// tooling.
/// @return Semver contract version as a string.
function version() external view returns (string memory);
}

0 comments on commit c728155

Please sign in to comment.