unc_sdk/types/
primitives.rs

1#[cfg(all(not(target_arch = "wasm32"), feature = "unit-testing"))]
2use unc_primitives_core::hash::CryptoHash;
3
4#[cfg(all(not(target_arch = "wasm32"), feature = "unit-testing"))]
5pub use unc_parameters::RuntimeFeesConfig;
6
7//* Type aliases from unc_primitives_core
8
9/// Hash used by a struct implementing the Merkle tree.
10#[cfg(all(not(target_arch = "wasm32"), feature = "unit-testing"))]
11#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
12pub type MerkleHash = CryptoHash;
13/// Validator identifier in current group.
14#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
15pub type ValidatorId = u64;
16/// Mask which validators participated in multi sign.
17#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
18pub type ValidatorMask = Vec<bool>;
19/// StorageUsage is used to count the amount of storage used by a contract.
20pub type StorageUsage = u64;
21/// StorageUsageChange is used to count the storage usage within a single contract call.
22#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
23pub type StorageUsageChange = i64;
24/// Nonce for transactions.
25#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
26pub type Nonce = u64;
27/// Height of the block.
28pub type BlockHeight = u64;
29/// Height of the epoch.
30pub type EpochHeight = u64;
31/// Shard index, from 0 to NUM_SHARDS - 1.
32#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
33pub type ShardId = u64;
34/// Number of blocks in current group.
35#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
36pub type NumBlocks = u64;
37/// Number of shards in current group.
38#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
39pub type NumShards = u64;
40/// Number of seats of validators (block producer or hidden ones) in current group (settlement).
41#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
42pub type NumSeats = u64;
43/// Block height delta that measures the difference between `BlockHeight`s.
44#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
45pub type BlockHeightDelta = u64;
46
47#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
48pub type GCCount = u64;
49
50#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
51pub type PromiseId = Vec<usize>;
52
53#[deprecated(since = "2.0.0", note = "Type has no connection with the SDK")]
54pub type ProtocolVersion = u32;