TARAXA
types.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <libdevcore/Address.h>
4 #include <libdevcore/FixedHash.h>
5 #include <libdevcrypto/Common.h>
6 
7 #include <boost/asio.hpp>
8 #include <boost/multiprecision/cpp_int.hpp>
9 
10 namespace taraxa {
11 
12 using dev::Address;
13 using dev::AddressSet;
14 using dev::bytes;
15 using dev::bytesConstRef;
16 using dev::h256;
17 using dev::h256Hash;
18 using dev::h256s;
19 using dev::h64;
20 using dev::Secret;
21 using dev::u256;
22 
23 using EthBlockNumber = uint64_t;
25 using PbftRound = uint32_t;
26 using PbftStep = uint32_t;
27 
28 // time related
30 
31 // network related
36 
44 
45 using gas_t = uint64_t;
46 using level_t = uint64_t;
47 using val_t = dev::u256;
48 using root_t = dev::h256;
49 
50 using vec_blk_t = std::vector<blk_hash_t>;
51 using vec_trx_t = std::vector<trx_hash_t>;
52 using byte = uint8_t;
53 using bytes = std::vector<byte>;
55 } // namespace taraxa
SecureFixedHash< 32 > Secret
Definition: Common.h:19
std::vector< h256 > h256s
Definition: FixedHash.h:458
h160 Address
Definition: Address.h:17
std::vector<::byte > bytes
Definition: Common.h:46
FixedHash< 8 > h64
Definition: FixedHash.h:456
std::unordered_set< h160 > AddressSet
A hash set of Ethereum addresses.
Definition: Address.h:23
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void > > u256
Definition: Common.h:98
std::unordered_set< h256 > h256Hash
Definition: FixedHash.h:462
vector_ref<::byte const > bytesConstRef
Definition: Common.h:48
FixedHash< 32 > h256
Definition: FixedHash.h:453
Definition: config.hpp:8
dev::FixedHash< 64 > uint512_hash_t
Definition: types.hpp:33
uint32_t PbftStep
Definition: types.hpp:26
uint64_t EthBlockNumber
Definition: types.hpp:23
std::vector< blk_hash_t > vec_blk_t
Definition: types.hpp:50
dev::FixedHash< 32 > uint256_hash_t
Definition: types.hpp:32
uint32_t PbftRound
Definition: types.hpp:25
EthBlockNumber PbftPeriod
Definition: types.hpp:24
val_t trx_nonce_t
Definition: types.hpp:54
boost::multiprecision::uint256_t uint256_t
Definition: types.hpp:29
dev::u256 val_t
Definition: types.hpp:47
uint64_t level_t
Definition: types.hpp:46
std::vector< trx_hash_t > vec_trx_t
Definition: types.hpp:51
uint64_t gas_t
Definition: types.hpp:45
dev::FixedHash< 20 > uint160_hash_t
Definition: types.hpp:35
dev::FixedHash< 65 > uint520_hash_t
Definition: types.hpp:34