This contract allows devs to add authorization capabilities to their own contracts, with a very flexible permission system. The contract creates the concept of a "position", that underlying contracts can use to represent ownership. This could be ownership of funds or more complex ideas. Each position is represented by an NFT, that can be transferred by the owner.
Whoever owns a position, has full permissions over the position. However, the owner can also grant/revoke specific permissions to other accounts. Permissions are represented by a number, so it's up to each dev to determine the values used to represent each permission in their system.
Finally, the owner can grant permissions by interacting directly with the contract, but they can also be granted via signature.
This is a list of the most frequently needed commands.
Build the contracts:
$ forge buildDelete the build artifacts and cache directories:
$ forge cleanCompile the contracts:
$ forge buildGet a test coverage report:
$ forge coverageFormat the contracts:
$ forge fmtGet a gas report:
$ forge test --gas-reportLint the contracts:
$ yarn lintRun the tests:
$ forge testThis project is licensed under MIT.
This project has been audited by Omniscia. You can see the report here.