@bananapus/permission-ids-v6 0.0.24 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/JBPermissionIds.sol +14 -5
package/package.json
CHANGED
package/src/JBPermissionIds.sol
CHANGED
|
@@ -160,15 +160,24 @@ library JBPermissionIds {
|
|
|
160
160
|
|
|
161
161
|
/// @notice Deploy cross-chain sucker bridges for a project, enabling token bridging between chains
|
|
162
162
|
/// (`JBSuckerRegistry.deploySuckersFor`).
|
|
163
|
+
/// @dev When the configuration's `peer` is `address(0)` or `address(this)` (default symmetric-address peering),
|
|
164
|
+
/// `DEPLOY_SUCKERS` is sufficient. Registering a non-symmetric explicit peer also requires `SET_SUCKER_PEER`.
|
|
163
165
|
uint8 internal constant DEPLOY_SUCKERS = 33;
|
|
164
166
|
|
|
167
|
+
/// @notice Register a non-symmetric explicit peer address when deploying a cross-chain sucker
|
|
168
|
+
/// (`JBSuckerRegistry.deploySuckersFor` with `configuration.peer` != 0 and != `address(this)`).
|
|
169
|
+
/// @dev The explicit-peer field bypasses the same-address peering invariant, so any operator that can set it
|
|
170
|
+
/// can authorize mint-from-arbitrary-roots. This permission is intentionally narrower than `DEPLOY_SUCKERS` so
|
|
171
|
+
/// that ops automation with `DEPLOY_SUCKERS` cannot register attacker-controlled peers.
|
|
172
|
+
uint8 internal constant SET_SUCKER_PEER = 34;
|
|
173
|
+
|
|
165
174
|
/// @notice Enable the emergency hatch on a cross-chain sucker, allowing stuck tokens to be recovered
|
|
166
175
|
/// (`JBSucker.enableEmergencyHatchFor`).
|
|
167
|
-
uint8 internal constant SUCKER_SAFETY =
|
|
176
|
+
uint8 internal constant SUCKER_SAFETY = 35;
|
|
168
177
|
|
|
169
178
|
/// @notice Set the deprecation status of a cross-chain sucker, progressing it through its shutdown lifecycle
|
|
170
179
|
/// (`JBSucker.setDeprecation`).
|
|
171
|
-
uint8 internal constant SET_SUCKER_DEPRECATION =
|
|
180
|
+
uint8 internal constant SET_SUCKER_DEPRECATION = 36;
|
|
172
181
|
|
|
173
182
|
/* ── revnet-core-v6
|
|
174
183
|
─────────────────────────────────────────────────
|
|
@@ -176,13 +185,13 @@ library JBPermissionIds {
|
|
|
176
185
|
|
|
177
186
|
/// @notice Open a loan against project tokens as collateral on behalf of a token holder
|
|
178
187
|
/// (`REVLoans.borrowFrom`).
|
|
179
|
-
uint8 internal constant OPEN_LOAN =
|
|
188
|
+
uint8 internal constant OPEN_LOAN = 37;
|
|
180
189
|
|
|
181
190
|
/// @notice Move loan collateral between projects on behalf of a loan owner
|
|
182
191
|
/// (`REVLoans.reallocateCollateralFromLoan`).
|
|
183
|
-
uint8 internal constant REALLOCATE_LOAN =
|
|
192
|
+
uint8 internal constant REALLOCATE_LOAN = 38;
|
|
184
193
|
|
|
185
194
|
/// @notice Repay a loan on behalf of the loan owner, returning collateral tokens
|
|
186
195
|
/// (`REVLoans.repayLoan`).
|
|
187
|
-
uint8 internal constant REPAY_LOAN =
|
|
196
|
+
uint8 internal constant REPAY_LOAN = 39;
|
|
188
197
|
}
|