IVersionGetter
Functions
version
Get the version of the smart contract project.
Examples:
- 1.2.3 --> (1, 2, 3, "", "" )
- 1.2.3-alpha.0 --> (1, 2, 3, "alpha.0", "" )
- 1.2.3+sha.a1b2c3 --> (1, 2, 3, "", "sha.a1b2c3")
- 1.2.3-alpha.0+sha.a1b2c3 --> (1, 2, 3, "alpha.0", "sha.a1b2c3") You can learn more about semantic versioning at <semver.org>.
function version()
external
view
returns (
uint64 major,
uint64 minor,
uint64 patch,
string memory preRelease,
string memory buildMetadata
);
Returns
| Name | Type | Description |
|---|---|---|
major | uint64 | The major version |
minor | uint64 | The minor version |
patch | uint64 | The patch version |
preRelease | string | The pre-release version (can be empty) |
buildMetadata | string | The build metadata (can be empty) |