Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: introduce IVersionable interface #4

Merged
merged 9 commits into from
Nov 10, 2024
Merged

feat: introduce IVersionable interface #4

merged 9 commits into from
Nov 10, 2024

Conversation

ihoroleksiienko
Copy link
Contributor

@ihoroleksiienko ihoroleksiienko commented Nov 6, 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:46
@igorsenych-cw igorsenych-cw self-assigned this Nov 8, 2024
@igorsenych-cw igorsenych-cw changed the title Add version feat: add IVersionable interface Nov 8, 2024
@igorsenych-cw igorsenych-cw merged commit fcb580b into main Nov 10, 2024
6 checks passed
@igorsenych-cw igorsenych-cw deleted the add-version branch November 10, 2024 15:15
@igorsenych-cw igorsenych-cw changed the title feat: add IVersionable interface feat: introduce IVersionable interface Nov 18, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants