timechain_runtime/
version.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
use polkadot_sdk::*;

use sp_version::{Cow, RuntimeVersion};

use crate::apis::RUNTIME_API_VERSIONS;

/// Mainnet runtime version
#[cfg(not(any(feature = "testnet", feature = "develop")))]
#[sp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
	spec_name: Cow::Borrowed("analog-timechain"),
	impl_name: Cow::Borrowed("analog-timechain"),
	authoring_version: 0,
	spec_version: 46,
	impl_version: 0,
	apis: RUNTIME_API_VERSIONS,
	transaction_version: 1,
	system_version: 1,
};

/// Staging runtime version.
#[cfg(all(not(feature = "testnet"), feature = "develop"))]
#[sp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
	spec_name: Cow::Borrowed("analog-staging"),
	impl_name: Cow::Borrowed("analog-staging"),
	authoring_version: 0,
	spec_version: 46,
	impl_version: 0,
	apis: RUNTIME_API_VERSIONS,
	transaction_version: 1,
	system_version: 1,
};

/// Testnet runtime version.
#[cfg(all(feature = "testnet", not(feature = "develop")))]
#[sp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
	spec_name: Cow::Borrowed("analog-testnet"),
	impl_name: Cow::Borrowed("analog-testnet"),
	authoring_version: 0,
	spec_version: 46,
	impl_version: 0,
	apis: RUNTIME_API_VERSIONS,
	transaction_version: 1,
	system_version: 1,
};

/// Development runtime version.
#[cfg(all(feature = "testnet", feature = "develop"))]
#[sp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
	spec_name: Cow::Borrowed("analog-develop"),
	impl_name: Cow::Borrowed("analog-develop"),
	authoring_version: 0,
	spec_version: 46,
	impl_version: 0,
	apis: RUNTIME_API_VERSIONS,
	transaction_version: 1,
	system_version: 1,
};