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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
pub(crate) mod tests {
pub(crate) fn get_json() -> String{
return r#"
{
"metadata": {
"title": "XFarm Vaults",
"source": "https://github.com/xfarms/vaults",
"status": "auditing",
"languages": [
"solidity"
],
"categories": [
"vaults"
],
"tags": [
"medium"
],
"networks": [
"bsc"
],
"timestamps": {
"onboarded": 12312312312,
"commencement": 12313212312,
"completion": 12312321312
},
"project": {
"title": "XFarm",
"website": "https://xfarms.io",
"twitter": "uno_farm",
"github": "https://github.com/xfarms"
}
},
"revisions": [
{
"id": "preliminary",
"title": "Preliminary",
"source.commit": "https://github.com/xfarms/vaults/tree/4a6a247e017f96cb5f569331ca64c7f5fd41189d",
"timestamps": {
"commencement": 12312312312,
"completion": 1231232131
},
"status": "auditing"
}
],
"contracts": [{
"id": "farm",
"revisions": {
"preliminary": {
"file": "contracts/Farm.sol",
"name": "Farm"
}
},
"metadata": {
"livematch": {
"link": "https://bscscan.com/address/0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000",
"status": "MATCHED",
"timestamps": {
"commencement": 123123213,
"completion": 12312312312
}
},
"privileged": [
"transferOwnership",
"renounceOwnership",
"pause",
"unpause"
]
}
}],
"audit": {
"contracts": {
"farm": {
"description": "The Farm contract is responsible for blabla",
"issues": {
"count": 1,
"severities": {
"info": {
"count": 1,
"issues": [
{
"id": "farm-typographicerrors",
"title": "Typographic Errors",
"description": "The contract contains the following typographic errors:\n\nLine 3\n ```uint256 precsicion```",
"recommendation": "Consider resolving the aforementioned errors.",
"resolution": "",
"status": "pending",
"revisions": {
"raised": "preliminary",
"resolved": "resolutions1"
},
"timestamps": {
"commencement": 12312321,
"completion": 123123123
}
}
]
}
}
}
}
}
}
}
"#.to_string();
}
}