Skip to content

Commit 2458ba0

Browse files
committed
chore: prettier
1 parent e9629b4 commit 2458ba0

File tree

2 files changed

+126
-1
lines changed

2 files changed

+126
-1
lines changed
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
// Place your kleros-v2 workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3+
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4+
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5+
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6+
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
7+
// Placeholders with the same ids are connected.
8+
// Example:
9+
// "Print to console": {
10+
// "scope": "javascript,typescript",
11+
// "prefix": "log",
12+
// "body": [
13+
// "console.log('$1');",
14+
// "$2"
15+
// ],
16+
// "description": "Log output to console"
17+
// }
18+
"Decorator for the Enums / Structs section": {
19+
"scope": "solidity",
20+
"prefix": "/struct",
21+
"body": [
22+
"// ************************************* //",
23+
"// * Enums / Structs * //",
24+
"// ************************************* //",
25+
"$0"
26+
]
27+
},
28+
"Decorator for the Storage section": {
29+
"scope": "solidity",
30+
"prefix": "/stor",
31+
"body": [
32+
"// ************************************* //",
33+
"// * Storage * //",
34+
"// ************************************* //",
35+
"$0"
36+
]
37+
},
38+
"Decorator for the Events section": {
39+
"scope": "solidity",
40+
"prefix": "/event",
41+
"body": [
42+
"// ************************************* //",
43+
"// * Events * //",
44+
"// ************************************* //",
45+
"$0"
46+
]
47+
},
48+
"Decorator for the Function Modifiers section": {
49+
"scope": "solidity",
50+
"prefix": "/modif",
51+
"body": [
52+
"// ************************************* //",
53+
"// * Function Modifiers * //",
54+
"// ************************************* //",
55+
"$0"
56+
]
57+
},
58+
"Decorator for the Constructor section": {
59+
"scope": "solidity",
60+
"prefix": "/constr",
61+
"body": [
62+
"// ************************************* //",
63+
"// * Constructor * //",
64+
"// ************************************* //",
65+
"$0"
66+
]
67+
},
68+
"Decorator for the Initializer section": {
69+
"scope": "solidity",
70+
"prefix": "/init",
71+
"body": [
72+
"// ************************************* //",
73+
"// * Initializer * //",
74+
"// ************************************* //",
75+
"$0"
76+
]
77+
},
78+
"Decorator for the Governance section": {
79+
"scope": "solidity",
80+
"prefix": "/gov",
81+
"body": [
82+
"// ************************************* //",
83+
"// * Governance * //",
84+
"// ************************************* //",
85+
"$0"
86+
]
87+
},
88+
"Decorator for the State Modifiers section": {
89+
"scope": "solidity",
90+
"prefix": "/state",
91+
"body": [
92+
"// ************************************* //",
93+
"// * State Modifiers * //",
94+
"// ************************************* //",
95+
"$0"
96+
]
97+
},
98+
"Decorator for the Public Views section": {
99+
"scope": "solidity",
100+
"prefix": "/view",
101+
"body": [
102+
"// ************************************* //",
103+
"// * Public Views * //",
104+
"// ************************************* //",
105+
"$0"
106+
]
107+
},
108+
"Decorator for the Internal section": {
109+
"scope": "solidity",
110+
"prefix": "/intern",
111+
"body": [
112+
"// ************************************* //",
113+
"// * Internal * //",
114+
"// ************************************* //",
115+
"$0"
116+
]
117+
},
118+
}

contracts/src/CurateView.sol

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ import {Curate, IArbitratorV2} from "./CurateV2.sol";
1414
/// A view contract to fetch, batch, parse and return Curate contract data efficiently.
1515
/// This contract includes functions that can halt execution due to out-of-gas exceptions. Because of this it should never be relied upon by other contracts.
1616
contract CurateView {
17+
// ************************************* //
18+
// * Enums / Structs * //
19+
// ************************************* //
1720
struct QueryResult {
1821
bytes32 ID;
1922
Curate.Status status;
@@ -45,6 +48,10 @@ contract CurateView {
4548
uint256 arbitrationCost;
4649
}
4750

51+
// ************************************* //
52+
// * Public Views * //
53+
// ************************************* //
54+
4855
/// @dev Fetch Curate storage in a single call.
4956
/// @param _address The address of the Curate contract to query.
5057
/// @return result The latest storage data.
@@ -189,4 +196,4 @@ contract CurateView {
189196
arbitratorExtraData
190197
);
191198
}
192-
}
199+
}

0 commit comments

Comments
 (0)