@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bananapus/permission-ids-v6",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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 = 34;
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 = 35;
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 = 36;
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 = 37;
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 = 38;
196
+ uint8 internal constant REPAY_LOAN = 39;
188
197
  }