Socket
Socket
Sign inDemoInstall

@cruna/protocol

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cruna/protocol - npm Package Compare versions

Comparing version 1.0.0-rc.3 to 1.0.0-rc.4

canonical/CanonicalAddresses.sol

8

package.json
{
"name": "@cruna/protocol",
"version": "1.0.0-rc.3",
"version": "1.0.0-rc.4",
"description": "The Cruna protocol",

@@ -37,3 +37,7 @@ "publishConfig": {

"nft"
]
],
"dependencies": {
"@openzeppelin/contracts": "^5.0.1",
"erc6551": "^0.3.1"
}
}

@@ -7,3 +7,3 @@ # Welcome to the Cruna Protocol - Redefining NFTs for Enhanced Security and Limitless Expandability

Through the Cruna Protocol, NFTs evolve beyond static assets, transforming into expandable, secure entities capable of owning and interacting with a wide range of digital assets and applications. This shift marks a groundbreaking leap in NFT technology, opening doors to endless possibilities in the digital asset space.
Through the Cruna Protocol, NFTs evolve beyond static assets, transforming into expandable, secure entities capable of owning and interacting with a wide range of digital assets and applications. This shift marks a remarkable leap in NFT technology, opening doors to endless possibilities in the digital asset space.

@@ -14,8 +14,6 @@ Join us as we explore the forefront of NFT innovation, where security meets scalability, and every digital asset gains the power to be more than just a token – a safeguarded, expandable asset in the ever-evolving digital world.

ERC-6551 defines a system which assigns EVM-compatible accounts to all non-fungible tokens. These token bound accounts allow NFTs to own assets and interact with applications, without requiring changes to existing smart contracts or infrastructure.
ERC-6551 creates accounts bound to NFTs, allowing any NFT to own assets and interact with applications without necessitating changes to existing smart contracts or infrastructure.
While the ERC-6551 standard is a significant step forward in the evolution of NFTs, it lacks a critical component: security. The standard does not specify any security requirements for the NFT to whom the account is bound. This omission leaves the NFT vulnerable to unauthorized access and misuse, undermining the security of the entire system.
While the ERC-6551 standard heralds a groundbreaking advancement in NFT functionality, focusing on interoperability and utility, it does not specifically address security protocols. Therefore, if the NFT that owns the token-bound account is compromised, the entire wallet could be at risk. Cruna aims to enhance the capabilities of NFTs by ensuring that token-bound accounts are protected against unauthorized access, thereby complementing ERC-6551’s innovative framework with robust security solutions.
Cruna Vault is specially designed to work with ERC-6551 wallets, a new way for NFTs to manage digital assets seamlessly.
### Meet the Protectors

@@ -138,3 +136,3 @@

```sh
npm install @cruna/protocol@1.0.0-rc.3 @openzeppelin/contracts erc6551
npm install @cruna/protocol@1.0.0-rc.4
```

@@ -154,6 +152,11 @@ or similar commands using Yarn or Pnpm, and use in your Solidity smart contracts, for example, as

If your goal is to build a plugin, look at the contracts in [contracts/mocks/plugin-example](./contracts/mocks/plugin-example) to start from.
If your goal is to build a plugin, look at the contracts in [contracts/mocks/plugin-example](contracts/mocks/plugins/plugin-example) to start from.
## History
**1.0.0-rc.4**
- Add flag to specify that a vault has been deployed to a main network since it is not possible to know that on chain
- Allow developers to plug untrusted plugins. This is essential for testing, and useful to test plugins on testnets before deploying them on mainnet
- To avoid security issues, transfers by untrusted plugins can be executed only on testnets
**1.0.0-rc.3**

@@ -196,3 +199,3 @@ - Plugins are now deployed by the NFT, not by the manager. This avoids issues when deploying plugins that supports IERC6551Account

- Simplify proxies
- Split ManagedERC721 in a basic contract, CrunaManagedBase, and two implementations based on Ownable and TimeControlled. The second is used by CrunaVaults, but the other can be chosen by less critical projects.
- Split ManagedERC721 in a basic contract, CrunaManagedBase, and two implementations based on Ownable and TimeControlled. The second is used by TimeControlledNFT, but the other can be chosen by less critical projects.
- Extend TimeControlled also in the Guardian, to guarantee the fairness of the trusted implementations

@@ -259,3 +262,3 @@

```
44 passing
43 passing

@@ -268,10 +271,10 @@ ------------------------------------|----------|----------|----------|----------

IERC6982.sol | 100 | 100 | 100 | 100
manager/ | 98.24 | 68.38 | 98.18 | 98.4
manager/ | 98.25 | 67.39 | 98.18 | 97.37
Actor.sol | 100 | 60 | 100 | 100
CrunaManager.sol | 98.54 | 69.3 | 100 | 98.67
CrunaManager.sol | 98.55 | 68.1 | 100 | 97.39
CrunaManagerBase.sol | 93.33 | 66.67 | 85.71 | 94.12
CrunaManagerProxy.sol | 100 | 100 | 100 | 100
ICrunaManager.sol | 100 | 100 | 100 | 100
plugins/ | 100 | 83.33 | 100 | 100
CrunaPluginBase.sol | 100 | 83.33 | 100 | 100
plugins/ | 100 | 78.57 | 100 | 100
CrunaPluginBase.sol | 100 | 78.57 | 100 | 100
ICrunaPlugin.sol | 100 | 100 | 100 | 100

@@ -282,4 +285,4 @@ plugins/inheritance/ | 100 | 70.31 | 100 | 97.5

InheritanceCrunaPluginProxy.sol | 100 | 100 | 100 | 100
token/ | 94.64 | 70.37 | 95.83 | 95.08
CrunaManagedNFTBase.sol | 94.12 | 69.57 | 94.74 | 94.74
token/ | 94.64 | 68.52 | 95.83 | 95.16
CrunaManagedNFTBase.sol | 94.12 | 67.39 | 94.74 | 94.83
CrunaManagedNFTOwnable.sol | 100 | 50 | 100 | 100

@@ -289,8 +292,8 @@ CrunaManagedNFTTimeControlled.sol | 100 | 83.33 | 100 | 100

IVault.sol | 100 | 100 | 100 | 100
utils/ | 94.55 | 68.52 | 96.55 | 94.2
CanonicalAddresses.sol | 100 | 100 | 100 | 100
utils/ | 88.33 | 66.07 | 87.88 | 89.19
CanonicalAddresses.sol | 50 | 100 | 50 | 50
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
FlexiTimelockController.sol | 81.82 | 45 | 85.71 | 88.89
ICanonicalAddresses.sol | 100 | 100 | 100 | 100

@@ -304,5 +307,5 @@ ICrunaGuardian.sol | 100 | 100 | 100 | 100

SignatureValidator.sol | 100 | 90 | 100 | 100
TokenLinkedContract.sol | 80 | 50 | 80 | 88.89
TokenLinkedContract.sol | 90 | 50 | 100 | 100
------------------------------------|----------|----------|----------|----------
All files | 97.46 | 69.69 | 97.78 | 97.09
All files | 96.4 | 68.4 | 95.68 | 95.74
------------------------------------|----------|----------|----------|----------

@@ -309,0 +312,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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc