-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy path.solhint.json
171 lines (171 loc) · 5.53 KB
/
.solhint.json
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
"extends": "solhint:recommended",
"rules": {
"compiler-version": ["error", "^0.6.12 || ^0.8.4"],
"prettier/prettier": "error",
"not-rely-on-time": "off",
"reason-string": ["warn",{"maxLength":120}],
"max-line-length": ["error", 120],
"modifiers/ensure-modifiers": ["error", {
"ignoreContractKind": ["interface"],
"required": {
"*": ["onlyAdmin"]
},
"override": {
"**/PoolTokens.sol:PoolTokens": {
"mint": ["onlyPool"],
"redeem": ["onlyPool"],
"onPoolCreated": ["onlyGoldfinchFactory"],
"burn": [],
"getTokenInfo": []
},
"*:*.initialize": ["initializer"],
"*:*.__initialize__": ["initializer"],
"*:*.null": [],
"**/CreditDesk.sol:CreditDesk": {
"createCreditLine": [],
"createPool": [],
"drawdown": [],
"pay": [],
"assessCreditLine": [],
"applyPayment": [],
"migrateCreditLine": [],
"migrateV1CreditLine": []
},
"**/GoldfinchConfig.sol:GoldfinchConfig": {
"addToGoList": ["onlyGoListerRole"],
"bulkAddToGoList": ["onlyGoListerRole"],
"removeFromGoList": ["onlyGoListerRole"],
"bulkRemoveFromGoList": ["onlyGoListerRole"]
},
"**/GoldfinchFactory.sol:GoldfinchFactory": {
"createCreditLine": [],
"createBorrower": [],
"createPool": [],
"validPool": [],
"createMigratedPool": []
},
"**/CreditLine.sol:CreditLine": {
"setLimit": []
},
"**/V2Migrator.sol:V2Migrator": {
"upgradeImplementations": []
},
"**/MigratedTranchedPool.sol:MigratedTranchedPool": {
"migrateCreditLineToV2": []
},
"**/BaseUpgradeablePausable.sol:BaseUpgradeablePausable": {
"__BaseUpgradeablePausable__init": []
},
"**/Fidu.sol:Fidu": {
"__initialize__": [],
"mintTo": [],
"burnFrom": [],
"updateGoldfinchConfig": []
},
"**/Pool.sol:Pool": {
"deposit": [],
"withdraw": [],
"withdrawInFidu": [],
"collectInterestAndPrincipal": [],
"distributeLosses": [],
"transferFrom": [],
"drawdown": []
},
"**/TranchedPool.sol:TranchedPool": {
"deposit": ["whenNotPaused"],
"depositWithPermit": [],
"lockJuniorCapital": ["whenNotPaused", "onlyLocker"],
"lockPool": ["whenNotPaused", "onlyLocker"],
"withdraw": ["whenNotPaused", "onlyTokenHolder"],
"withdrawMax": ["whenNotPaused", "onlyTokenHolder"],
"withdrawMultiple": [],
"drawdown": ["whenNotPaused"],
"assess": ["whenNotPaused"],
"pay": ["whenNotPaused"]
},
"**/PauserPausable.sol:PauserPausable": {
"__PauserPausable__init": [],
"pause": [],
"unpause": []
},
"**/SeniorPool.sol:SeniorPool": {
"deposit": [],
"depositWithPermit": [],
"withdraw": [],
"withdrawInFidu": []
},
"**/SeniorPoolFidu.sol:SeniorPoolFidu": {
"__initialize__": [],
"mintTo": [],
"burnFrom": [],
"updateGoldfinchConfig": []
},
"**/TransferRestrictedVault.sol:TransferRestrictedVault": {
"depositJunior": [],
"depositJuniorWithPermit": [],
"depositSenior": [],
"depositSeniorWithPermit": [],
"withdrawJunior": [],
"withdrawSenior": [],
"withdrawSeniorInFidu": [],
"transferPosition": []
},
"**/DynamicLeverageRatioStrategy.sol:DynamicLeverageRatioStrategy": {
"setLeverageRatio": ["onlySetterRole"]
},
"**/GFI.sol:GFI": {
"mint": ["onlyMinter"],
"setCap": ["onlyOwner"],
"pause": ["onlyPauser"],
"unpause": ["onlyPauser"]
},
"**/StakingRewards.sol:StakingRewards": {
"stake": [],
"stakeWithLockup": [],
"depositAndStake": [],
"depositWithPermitAndStake": [],
"depositAndStakeWithLockup": [],
"depositWithPermitAndStakeWithLockup": [],
"unstake": [],
"unstakeAndWithdraw": [],
"unstakeAndWithdrawMultiple": [],
"unstakeAndWithdrawInFidu": [],
"unstakeAndWithdrawMultipleInFidu": [],
"getReward": [],
"kick": [],
"exit": [],
"exitAndWithdraw": []
},
"**/CommunityRewards.sol:CommunityRewards": {
"grant": ["nonReentrant", "whenNotPaused", "onlyDistributor"],
"getReward": []
},
"**/PoolRewards.sol:PoolRewards": {
"allocateRewards": ["onlyPool"],
"setPoolTokenAccRewardsPerPrincipalDollarAtMint": [],
"withdraw": [],
"withdrawMultiple": []
},
"**/MerkleDistributor.sol:MerkleDistributor": {
"_setGrantAccepted": [],
"acceptGrant": ["onlyGrantRecipient"]
},
"**/ERC1155PresetPauserUpgradeable.sol:ERC1155PresetPauserUpgradeable": {
"pause": [],
"unpause": []
},
"**/UniqueIdentity.sol:UniqueIdentity": {
"mint": ["onlySigner"],
"safeTransferFrom": [],
"safeBatchTransferFrom": [],
"burn": ["onlySigner"]
},
"**/contracts/test/**": {
"*.*": []
}
}
}]
},
"plugins": ["prettier", "modifiers"]
}