@cruna/protocol
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0-beta.9
{ | ||
"name": "@cruna/protocol", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.9", | ||
"description": "The Cruna protocol", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
113
README.md
@@ -133,6 +133,6 @@ # Welcome to the Cruna Protocol - Redefining NFTs for Enhanced Security and Limitless Expandability | ||
Cruna is in beta stage, and to use it you must specify the version you want to install. Install it with | ||
Cruna is in beta stage, and to use it you must specify the version you want to install. Install it with, for example | ||
```sh | ||
npm install @cruna/protocol@1.0.0-beta.3 @openzeppelin/contracts erc6551 | ||
npm install @cruna/protocol@1.0.0-beta.7 @openzeppelin/contracts erc6551 | ||
``` | ||
@@ -142,5 +142,5 @@ or similar commands using Yarn or Pnpm, and use in your Solidity smart contracts, for example, as | ||
``` | ||
import {ManagedERC721} from "@cruna/protocol/contracts/manager/ManagedERC721.sol"; | ||
import {CrunaManagedNFTOwnable} from "@cruna/protocol/contracts/manager/CrunaManagedNFTOwnable.sol"; | ||
contract MySuperToken is ManagedERC721 { | ||
contract MySuperToken is CrunaManagedNFTOwnable { | ||
@@ -150,5 +150,4 @@ constructor( | ||
address guardian_, | ||
address signatureValidator_, | ||
address managerProxy_ | ||
) ManagedERC721("My Super Token", "MST", registry_, guardian_, signatureValidator_, managerProxy_) {} | ||
) CrunaManagedOwnable("My Super Token", "MST", registry_, guardian_, managerProxy_) {} | ||
} | ||
@@ -161,2 +160,19 @@ ``` | ||
**1.0.0-beta.9** | ||
- Allow to update the emitters for managers and plugins | ||
- Minor refactoring | ||
**1.0.0-beta.8** | ||
- Relevant events emitted from the single manager are hard to listen to. In this version, the emitter is the proxy implemented by the registry when creating a manager or a plugin for a specific token ID. | ||
**1.0.0-beta.7** | ||
- Add common event emitters for managers, instead of emitting via the vault, to allow the manager to evolve independently from the vault | ||
**1.0.0-beta.6** | ||
- Require signature, if protectors are active, to plug a new plugin, disable and re-enable a plugin, and to authorize/de-authorize a plugin to transfer the NFT | ||
- Minor alignment of function signatures, keeping timeValidation as an internal parameter, in favor of timestamp and validFor | ||
**1.0.0-beta-5** | ||
- Move events like ProtectorChange, SafeRecipientChange, etc. from the Manager to the Vault, because listening to events emitted by the vault is simpler than listening to the events emitted by all the managers | ||
**1.0.0-beta.4** | ||
@@ -228,41 +244,50 @@ - Renaming contracts to better distinguish them | ||
``` | ||
43 passing | ||
44 passing | ||
----------------------------------|----------|----------|----------|----------|----------------| | ||
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines | | ||
----------------------------------|----------|----------|----------|----------|----------------| | ||
interfaces/ | 100 | 100 | 100 | 100 | | | ||
IERC6454.sol | 100 | 100 | 100 | 100 | | | ||
IERC6982.sol | 100 | 100 | 100 | 100 | | | ||
manager/ | 98.09 | 73.85 | 100 | 98.85 | | | ||
Actor.sol | 100 | 70 | 100 | 100 | | | ||
CrunaManager.sol | 98.23 | 72.64 | 100 | 98.4 | 122,311 | | ||
CrunaManagerBase.sol | 96.15 | 85.71 | 100 | 100 | | | ||
CrunaManagerProxy.sol | 100 | 100 | 100 | 100 | | | ||
ICrunaManager.sol | 100 | 100 | 100 | 100 | | | ||
ICrunaManagerBase.sol | 100 | 100 | 100 | 100 | | | ||
plugins/ | 100 | 100 | 100 | 100 | | | ||
IPlugin.sol | 100 | 100 | 100 | 100 | | | ||
plugins/inheritance/ | 100 | 72.37 | 100 | 97.7 | | | ||
CrunaInheritancePlugin.sol | 100 | 72.37 | 100 | 97.7 | 92,187 | | ||
CrunaInheritancePluginProxy.sol | 100 | 100 | 100 | 100 | | | ||
ICrunaInheritancePlugin.sol | 100 | 100 | 100 | 100 | | | ||
token/ | 100 | 62.5 | 100 | 96.67 | | | ||
CrunaManagedBase.sol | 100 | 60.42 | 100 | 96.43 | 201,213 | | ||
CrunaManagedOwnable.sol | 100 | 50 | 100 | 100 | | | ||
CrunaManagedTimeControlled.sol | 100 | 83.33 | 100 | 100 | | | ||
ICrunaManaged.sol | 100 | 100 | 100 | 100 | | | ||
utils/ | 96.43 | 58.33 | 100 | 92.68 | | | ||
CrunaGuardian.sol | 100 | 50 | 100 | 75 | 42,47 | | ||
CrunaRegistry.sol | 100 | 100 | 100 | 100 | | | ||
ERC6551AccountProxy.sol | 90 | 75 | 100 | 90.91 | 35 | | ||
FlexiTimelockController.sol | 100 | 50 | 100 | 100 | | | ||
IBoundContract.sol | 100 | 100 | 100 | 100 | | | ||
ICrunaGuardian.sol | 100 | 100 | 100 | 100 | | | ||
ICrunaRegistry.sol | 100 | 100 | 100 | 100 | | | ||
IVersioned.sol | 100 | 100 | 100 | 100 | | | ||
SignatureValidator.sol | 100 | 75 | 100 | 100 | | | ||
----------------------------------|----------|----------|----------|----------|----------------| | ||
All files | 98.67 | 69.46 | 100 | 97.51 | | | ||
----------------------------------|----------|----------|----------|----------|----------------| | ||
-------------------------------------|----------|----------|----------|---------- | ||
File | % Stmts | % Branch | % Funcs | % Lines | ||
-------------------------------------|----------|----------|----------|---------- | ||
interfaces/ | 100 | 100 | 100 | 100 | ||
IERC6454.sol | 100 | 100 | 100 | 100 | ||
IERC6982.sol | 100 | 100 | 100 | 100 | ||
manager/ | 97.28 | 67.65 | 95.52 | 98.04 | ||
Actor.sol | 100 | 70 | 100 | 100 | ||
CrunaManager.sol | 97.73 | 68.12 | 95.12 | 97.95 | ||
CrunaManagerBase.sol | 94.12 | 63.64 | 94.12 | 97.37 | ||
CrunaManagerProxy.sol | 100 | 100 | 100 | 100 | ||
ICrunaManager.sol | 100 | 100 | 100 | 100 | ||
ICrunaManagerEmitter.sol | 100 | 100 | 100 | 100 | ||
plugins/ | 96.67 | 77.78 | 100 | 100 | ||
CrunaPluginBase.sol | 96.67 | 77.78 | 100 | 100 | ||
ICrunaPlugin.sol | 100 | 100 | 100 | 100 | ||
plugins/inheritance/ | 100 | 68.6 | 96.3 | 97.83 | ||
IInheritanceCrunaPlugin.sol | 100 | 100 | 100 | 100 | ||
IInheritanceCrunaPluginEmitter.sol | 100 | 100 | 100 | 100 | ||
InheritanceCrunaPlugin.sol | 100 | 68.6 | 96.15 | 97.83 | ||
InheritanceCrunaPluginProxy.sol | 100 | 100 | 100 | 100 | ||
token/ | 98.31 | 66.67 | 100 | 95.65 | ||
CrunaManagedNFTBase.sol | 98.15 | 65.38 | 100 | 95.38 | ||
CrunaManagedNFTOwnable.sol | 100 | 50 | 100 | 100 | ||
CrunaManagedNFTTimeControlled.sol | 100 | 83.33 | 100 | 100 | ||
ICrunaManagedNFT.sol | 100 | 100 | 100 | 100 | ||
IReference.sol | 100 | 100 | 100 | 100 | ||
IVault.sol | 100 | 100 | 100 | 100 | ||
utils/ | 96.55 | 58.33 | 100 | 93.02 | ||
CrunaGuardian.sol | 100 | 50 | 100 | 75 | ||
CrunaRegistry.sol | 100 | 100 | 100 | 100 | ||
ERC6551AccountProxy.sol | 90 | 75 | 100 | 90.91 | ||
FlexiTimelockController.sol | 100 | 50 | 100 | 100 | ||
IBoundContract.sol | 100 | 100 | 100 | 100 | ||
IBoundContractExtended.sol | 100 | 100 | 100 | 100 | ||
IControlled.sol | 100 | 100 | 100 | 100 | ||
ICrunaGuardian.sol | 100 | 100 | 100 | 100 | ||
ICrunaRegistry.sol | 100 | 100 | 100 | 100 | ||
INamed.sol | 100 | 100 | 100 | 100 | ||
INamedAndVersioned.sol | 100 | 100 | 100 | 100 | ||
IVersioned.sol | 100 | 100 | 100 | 100 | ||
SignatureValidator.sol | 100 | 75 | 100 | 100 | ||
WithDeployer.sol | 100 | 100 | 100 | 100 | ||
-------------------------------------|----------|----------|----------|---------- | ||
All files | 97.84 | 67.3 | 97.39 | 97.28 | ||
-------------------------------------|----------|----------|----------|---------- | ||
``` | ||
@@ -269,0 +294,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116773
36
307