@bananapus/permission-ids-v6 0.0.1 → 0.0.3
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/README.md +3 -3
- package/foundry.toml +1 -1
- package/package.json +1 -1
- package/src/JBPermissionIds.sol +7 -10
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Library of `uint8` constants defining all permission IDs used with `JBPermission
|
|
|
6
6
|
|
|
7
7
|
| Contract | Description |
|
|
8
8
|
|----------|-------------|
|
|
9
|
-
| `JBPermissionIds` | Solidity library with
|
|
9
|
+
| `JBPermissionIds` | Solidity library with 32 `uint8 internal constant` permission IDs. No state, no functions. |
|
|
10
10
|
|
|
11
11
|
### Permission ID Ranges
|
|
12
12
|
|
|
@@ -16,8 +16,8 @@ Library of `uint8` constants defining all permission IDs used with `JBPermission
|
|
|
16
16
|
| 2--20 | nana-core-v6 | `QUEUE_RULESETS`, `LAUNCH_RULESETS`, `CASH_OUT_TOKENS`, `SEND_PAYOUTS`, `MIGRATE_TERMINAL`, `SET_PROJECT_URI`, `DEPLOY_ERC20`, `SET_TOKEN`, `MINT_TOKENS`, `BURN_TOKENS`, `CLAIM_TOKENS`, `TRANSFER_CREDITS`, `SET_CONTROLLER`, `SET_TERMINALS`, `SET_PRIMARY_TERMINAL`, `USE_ALLOWANCE`, `SET_SPLIT_GROUPS`, `ADD_PRICE_FEED`, `ADD_ACCOUNTING_CONTEXTS` |
|
|
17
17
|
| 21--24 | nana-721-hook-v6 | `ADJUST_721_TIERS`, `SET_721_METADATA`, `MINT_721`, `SET_721_DISCOUNT_PERCENT` |
|
|
18
18
|
| 25--27 | nana-buyback-hook-v6 | `SET_BUYBACK_TWAP`, `SET_BUYBACK_POOL`, `SET_BUYBACK_HOOK` |
|
|
19
|
-
| 28
|
|
20
|
-
|
|
|
19
|
+
| 28 | nana-router-terminal-v6 | `SET_ROUTER_TERMINAL` |
|
|
20
|
+
| 29--32 | nana-suckers-v6 | `MAP_SUCKER_TOKEN`, `DEPLOY_SUCKERS`, `SUCKER_SAFETY`, `SET_SUCKER_DEPRECATION` |
|
|
21
21
|
|
|
22
22
|
## Install
|
|
23
23
|
|
package/foundry.toml
CHANGED
package/package.json
CHANGED
package/src/JBPermissionIds.sol
CHANGED
|
@@ -44,16 +44,13 @@ library JBPermissionIds {
|
|
|
44
44
|
uint8 internal constant SET_BUYBACK_HOOK = 27; // Permission to call `JBBuybackHookRegistry.setHookFor` and
|
|
45
45
|
// `JBBuybackHookRegistry.lockHookFor`.
|
|
46
46
|
|
|
47
|
-
/* Used by `nana-
|
|
48
|
-
uint8 internal constant
|
|
49
|
-
|
|
50
|
-
// `JBSwapTerminal.addTwapParamsFor`.
|
|
51
|
-
uint8 internal constant SET_SWAP_TERMINAL = 30; // Permission to call `JBSwapTerminalRegistry.setTerminalFor` and
|
|
52
|
-
// `JBSwapTerminalRegistry.lockTerminalFor`.
|
|
47
|
+
/* Used by `nana-router-terminal`: https://github.com/Bananapus/nana-router-terminal-v6 */
|
|
48
|
+
uint8 internal constant SET_ROUTER_TERMINAL = 28; // Permission to call
|
|
49
|
+
// `JBRouterTerminalRegistry.setTerminalFor` and `JBRouterTerminalRegistry.lockTerminalFor`.
|
|
53
50
|
|
|
54
51
|
/* Used by `nana-suckers`: https://github.com/Bananapus/nana-suckers */
|
|
55
|
-
uint8 internal constant MAP_SUCKER_TOKEN =
|
|
56
|
-
uint8 internal constant DEPLOY_SUCKERS =
|
|
57
|
-
uint8 internal constant SUCKER_SAFETY =
|
|
58
|
-
uint8 internal constant SET_SUCKER_DEPRECATION =
|
|
52
|
+
uint8 internal constant MAP_SUCKER_TOKEN = 29; // Permission to call `JBSucker.mapToken`.
|
|
53
|
+
uint8 internal constant DEPLOY_SUCKERS = 30; // Permission to call `JBSuckerRegistry.deploySuckersFor`.
|
|
54
|
+
uint8 internal constant SUCKER_SAFETY = 31; // Permission to call `JBSucker.enableEmergencyHatchFor`.
|
|
55
|
+
uint8 internal constant SET_SUCKER_DEPRECATION = 32; // Permission to call `JBSucker.setDeprecation`.
|
|
59
56
|
}
|