TARAXA
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <fmt/ostream.h>
7
8#include <boost/asio.hpp>
9#include <boost/multiprecision/cpp_int.hpp>
10
11namespace taraxa {
12
13using dev::Address;
14using dev::AddressSet;
15using dev::bytes;
17using dev::h256;
18using dev::h256Hash;
19using dev::h256s;
20using dev::h64;
21using dev::Secret;
22using dev::u256;
23
24using EthBlockNumber = uint64_t;
26using PbftRound = uint32_t;
27using PbftStep = uint32_t;
28
29// time related
30using uint256_t = boost::multiprecision::uint256_t;
31
32// network related
37
45
46using gas_t = uint64_t;
47using 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
Definition app.hpp:16
dev::FixedHash< 64 > uint512_hash_t
Definition types.hpp:34
uint32_t PbftStep
Definition types.hpp:27
uint8_t byte
Definition types.hpp:52
uint64_t EthBlockNumber
Definition types.hpp:24
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:33
uint32_t PbftRound
Definition types.hpp:26
EthBlockNumber PbftPeriod
Definition types.hpp:25
val_t trx_nonce_t
Definition types.hpp:54
boost::multiprecision::uint256_t uint256_t
Definition types.hpp:30
dev::u256 val_t
Definition types.hpp:48
uint64_t level_t
Definition types.hpp:47
std::vector< trx_hash_t > vec_trx_t
Definition types.hpp:51
uint64_t gas_t
Definition types.hpp:46
dev::FixedHash< 20 > uint160_hash_t
Definition types.hpp:36
dev::FixedHash< 65 > uint520_hash_t
Definition types.hpp:35