This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTypeDescrs.h
65 lines (54 loc) · 1.79 KB
/
TypeDescrs.h
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
62
63
64
65
/*
* Copyright (C) 2020 Zilliqa
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "../libScillaRTL/ScillaTypes.h"
namespace TypeDescrs {
using namespace ScillaRTL::ScillaTypes;
// IntX types
extern Typ Int32_typ;
extern Typ Int64_typ;
extern Typ Int128_typ;
extern Typ Int256_typ;
// UintX types
extern Typ Uint32_typ;
extern Typ Uint64_typ;
extern Typ Uint128_typ;
extern Typ Uint256_typ;
// String type
extern Typ String_typ;
extern Typ BNum_typ;
// ADTs
extern Typ List_int32_typ;
extern Typ List_int64_typ;
extern Typ Pair_list_int32_int64_typ;
extern Typ Pair_int32_list_int64_typ;
extern Typ Bool_typ, Option_Int256_typ;
// Map Int32 String, Map Int64 (Pair Int32 (List Int64))
// and Map Int32 (Map Int32 String)
extern Typ Map_int32_string_typ;
extern Typ Map_int64_pair_int32_list_int64_typ;
extern Typ Map_int32_map_int32_string_typ;
extern Typ ByStr20_typ;
extern Typ ByStr20_with_end_typ;
extern Typ ByStr20_with_codehash_end_typ;
extern Typ ByStr20_with_library_end_typ;
extern Typ ByStr20_with_contract_end_typ;
extern Typ ByStr_typ;
// Address types
extern Typ ByStr20_with_1_field_Typ, ByStr20_with_2_fields_Typ;
extern const Typ *AllTyDescrs[];
extern size_t NTyDescrs;
} // namespace TypeDescrs