UNPKG
evm
Version:
latest (0.2.0)
0.2.0
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
An ethereum virtual machine (EVM) bytecode decompiler
github.com/MrLuit/evm
MrLuit/evm
evm
/
tests
/
data
/
utils
/
validTypes.ts
15 lines
(10 loc)
•
298 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const
types = [
'bool'
,
'string'
,
'address'
,
'bytes'
];
for
(
let
i =
1
; i <=
32
; i++) { types.
push
(
'bytes'
+ i); }
for
(
let
i =
8
; i <=
256
; i +=
8
) { types.
push
(
'uint'
+ i); types.
push
(
'int'
+ i); } types.
forEach
(
type
=>
types.
push
(
type
+
'[]'
));
export
default
types;