TARAXA
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1#pragma once
2
6
7#include <boost/asio.hpp>
8#include <boost/multiprecision/cpp_int.hpp>
9
10namespace taraxa {
11
12using dev::Address;
13using dev::AddressSet;
14using dev::bytes;
16using dev::h256;
17using dev::h256Hash;
18using dev::h256s;
19using dev::h64;
20using dev::Secret;
21using dev::u256;
22
23using EthBlockNumber = uint64_t;
25using PbftRound = uint32_t;
26using PbftStep = uint32_t;
27
28// time related
29using uint256_t = boost::multiprecision::uint256_t;
30
31// network related
36
44
45using gas_t = uint64_t;
46using level_t = uint64_t;
49
50using vec_blk_t = std::vector<blk_hash_t>;
51using vec_trx_t = std::vector<trx_hash_t>;
52using byte = uint8_t;
53using bytes = std::vector<byte>;
55} // namespace taraxa
Definition FixedHash.h:35
Definition vector_ref.h:23
std::vector< h256 > h256s
Definition FixedHash.h:458
std::vector<::byte > bytes
Definition Common.h:46
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
FixedHash< 32 > h256
Definition FixedHash.h:453
Definition app.hpp:16
dev::FixedHash< 64 > uint512_hash_t
Definition types.hpp:33
uint32_t PbftStep
Definition types.hpp:26
uint8_t byte
Definition types.hpp:52
uint64_t EthBlockNumber
Definition types.hpp:23
std::vector< blk_hash_t > vec_blk_t
Definition types.hpp:50
std::vector< byte > bytes
Definition types.hpp:53
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