Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add IVersionable interface #12

Merged
merged 11 commits into from
Nov 11, 2024
Merged

feat: add IVersionable interface #12

merged 11 commits into from
Nov 11, 2024

Conversation

ihoroleksiienko
Copy link
Contributor

@ihoroleksiienko ihoroleksiienko commented Nov 5, 2024

Main changes

  1. Introduced a new IVersionable interface, providing structured versioning of smart contracts.
/**
 * @title IVersionable interface
 * @author CloudWalk Inc. (See https://www.cloudwalk.io)
 * @dev Defines the function of getting the contract version.
 */
interface IVersionable {
    /**
     * @dev The struct for the contract version.
     */
    struct Version {
        uint16 major; // -- The major version of contract
        uint16 minor; // -- The minor version of contract
        uint16 patch; // -- The patch version of contract
    }

    /**
     * @dev Returns the version of the contract.
     */
    function $__VERSION() external pure returns (Version memory);
}
  1. Updated all NPM dependencies to their latest versions.
  2. Made other minor changes related to project maintenance.

Test coverage

New functionality was fully covered by tests.

@igorsenych-cw igorsenych-cw marked this pull request as ready for review November 8, 2024 20:48
@igorsenych-cw igorsenych-cw changed the title Add version feat: add IVersionable interface Nov 8, 2024
@igorsenych-cw igorsenych-cw merged commit cc9804d into main Nov 11, 2024
6 checks passed
@igorsenych-cw igorsenych-cw deleted the add-version branch November 11, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants