
A developer has presented an idea to create smart contracts that can be paused and reactivated by minting and burning NFTs, thanks to the new features that Vasil has implemented in Cardano.
The Vasil hard fork, which has been recently implemented in the Cardano testnet, is designed to implement various new functionalities in the management of smart contracts.
One of the main functionalities that will be implemented with Vasil will be the Improvement Proposals (CIPs) which are designed to implement improvements to the overall functioning of the network, reducing transaction fees and increasing overall manageability.
Among the CIPs that are implemented with Vasil, the following stand out: Online data and reference entriesIn this sense, the hard fork has implemented four different CIPs: CIP-31 representing the reference inputs, CIP-32 which is the online data, the reference scripts in CIP-33 and CIP-40 with the collateral outputs.
Following the implementation of Vasil on the Cardano testnet, Sebastien Guillemot, CTO and co-founder of dcSpark, has shared on Twitter an idea for a new type of smart contract that the user could pause and reactivate at any time.
How can “pausable” contracts work in Vasil?
Guillemot believes that, thanks to the new functionalities that Vasil implements in Cardano smart contracts, this type of smart contracts would be a possibility.
These “pausable” contracts would use a reference input that would contain an NFT with an open minting policy. In case the DApp creator wants to pause the contract, the NFT is burned and re-minted when the contract needs to be unpaused.
On the other hand, a stateful contract where the NFT UTXO contains a paused state as an online data does not need an open policy and allows the contract to be drained after it has been paused could also serve this purpose.
In this sense, reference entries allow multiple DApps to read the same data at the same time, thus improving attendance. Online data, for its part, allows for data is stored on the chain instead of just a hash, as Cardano does so far. This way, developers can interact with the script more easily because they don't have to input the data.
[hubspot type=cta portal=20298209 id=38fb28e1-1dc1-40e3-9098-5704ca7fcb07]


