Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
@bananapus/permission-ids
Advanced tools
This repository contains permission IDs to grant scoped permissions through the [`JBPermissions`](https://github.com/Bananapus/nana-core/blob/main/src/JBPermissions.sol) contract and [`JBPermissioned`](https://github.com/Bananapus/nana-core/blob/main/src/
Readme
This repository contains permission IDs to grant scoped permissions through the JBPermissions
contract and JBPermissioned
modifier.
Permission IDs | Repository |
---|---|
1-20 | nana-core |
21 | nana-project-handles |
22-24 | nana-721-hook |
25-26 | nana-buyback-hook |
27-28 | nana-swap-terminal |
29-30 | nana-suckers |
If you're having trouble understanding this contract, take a look at the core protocol contracts and the documentation first. If you have questions, reach out on Discord.
For npm
projects (recommended):
npm install @bananapus/permission-ids
For forge
projects (not recommended):
forge install Bananapus/nana-permission-ids
Add @bananapus/permission-ids/=lib/nana-permission-ids/
to remappings.txt
. You'll also need to install nana-permission-ids
' dependencies and add similar remappings for them.
nana-permission-ids
uses npm for package management and the Foundry development toolchain for builds, tests, and deployments. To get set up, install Node.js and install Foundry:
curl -L https://foundry.paradigm.xyz | sh
You can download and install dependencies with:
forge install
If you run into trouble with forge install
, try using git submodule update --init --recursive
to ensure that nested submodules have been properly initialized.
Some useful commands:
Command | Description |
---|---|
forge build | Compile the contracts and write artifacts to out . |
forge fmt | Lint. |
forge test | Run the tests. |
forge build --sizes | Get contract sizes. |
forge coverage | Generate a test coverage report. |
foundryup | Update foundry. Run this periodically. |
forge clean | Remove the build artifacts and cache directories. |
To learn more, visit the Foundry Book docs.
FAQs
This repository contains permission IDs to grant scoped permissions through the [`JBPermissions`](https://github.com/Bananapus/nana-core/blob/main/src/JBPermissions.sol) contract and [`JBPermissioned`](https://github.com/Bananapus/nana-core/blob/main/src/
We found that @bananapus/permission-ids demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).