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
use primitive_types::{H160, U256, H256};
#[derive(Clone, Copy, Eq, PartialEq, Debug)]
pub enum CreateScheme {
Legacy {
caller: H160,
},
Create2 {
caller: H160,
code_hash: H256,
salt: H256,
},
Fixed(H160),
}
#[derive(Clone, Copy, Eq, PartialEq, Debug)]
pub enum CallScheme {
Call,
CallCode,
DelegateCall,
StaticCall,
}
#[derive(Clone, Debug)]
pub struct Context {
pub address: H160,
pub caller: H160,
pub apparent_value: U256,
}