|
1 | | -# Copyright (c) 2018-2025 Status Research & Development GmbH |
2 | | -# Licensed under either of |
3 | | -# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) |
4 | | -# * MIT license ([LICENSE-MIT](LICENSE-MIT)) |
5 | | -# at your option. |
6 | | -# This file may not be copied, modified, or distributed except according to |
7 | | -# those terms. |
8 | | - |
9 | | -{.push raises: [].} |
10 | | - |
11 | | -import |
12 | | - std/[strformat], |
13 | | - stew/byteutils, ./compile_info, beacon_chain/buildinfo |
14 | | - |
15 | | -const |
16 | | - NimbusName* = "nimbus-eth1" |
17 | | - ## project name string |
18 | | - |
19 | | - NimbusMajor*: int = 0 |
20 | | - ## is the major number of Nimbus' version. |
21 | | - |
22 | | - NimbusMinor*: int = 1 |
23 | | - ## is the minor number of Nimbus' version. |
24 | | - |
25 | | - NimbusPatch*: int = 0 |
26 | | - ## is the patch number of Nimbus' version. |
27 | | - |
28 | | - NimbusVersion* = $NimbusMajor & "." & $NimbusMinor & "." & $NimbusPatch |
29 | | - ## is the version of Nimbus as a string. |
30 | | - |
31 | | - GitRevisionBytes* = hexToByteArray[4](GitRevision) |
32 | | - |
33 | | - FullVersionStr* = "v" & NimbusVersion & "-" & GitRevision |
34 | | - |
35 | | - ClientId* = &"{NimbusName}/{FullVersionStr}/{hostOS}-{hostCPU}/Nim-{NimVersion}" |
36 | | - |
37 | | - ShortClientId* = NimbusName & "/" & FullVersionStr |
| 1 | +# Copyright (c) 2025 Status Research & Development GmbH |
| 2 | +# Licensed under either of |
| 3 | +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) |
| 4 | +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) |
| 5 | +# at your option. |
| 6 | +# This file may not be copied, modified, or distributed except according to |
| 7 | +# those terms. |
| 8 | + |
| 9 | +{.push raises: [].} |
| 10 | + |
| 11 | +#------------------------------------------------------------------------------ |
| 12 | +# The only place where NimbusVersion is declared. |
| 13 | +# Please do not put nim vm unfriendly stuff in this file, otherwise it will |
| 14 | +# break some scripts. Users of this file: |
| 15 | +# - ./version_info.nim > used by compiled binaries. |
| 16 | +# - ../scripts/print_version.nims > used by docker files. |
| 17 | +#------------------------------------------------------------------------------ |
| 18 | + |
| 19 | +const |
| 20 | + NimbusMajor* = 0 |
| 21 | + ## is the major number of Nimbus' version. |
| 22 | + |
| 23 | + NimbusMinor* = 1 |
| 24 | + ## is the minor number of Nimbus' version. |
| 25 | + |
| 26 | + NimbusPatch* = 0 |
| 27 | + ## is the patch number of Nimbus' version. |
| 28 | + |
| 29 | + NimbusVersion* = $NimbusMajor & "." & $NimbusMinor & "." & $NimbusPatch |
| 30 | + ## is the version of Nimbus as a string. |
0 commit comments