🟧 Clarity 4 is officially live! With Bitcoin block 923222, SIP-033 has been activated unlocking key new functions for developers across the Stacks ecosystem. For ALEX the most important are: 🔾 (contract-hash?) - Fetch the hash of a contact's code body This enables on-chain contract code validation, for example allowing one contract to validate that another contract follows a specific template and is therefore safe to interact with. This is especially useful for enabling bridges and marketplaces to safely and trustlessly support a dynamic set of assets. 🔾(restrict-assets?) - Allow a contract to set post-conditions Allow a contract to set post-conditions. These functions allow a contract to safely call arbitrary external contracts (e.g. passed in as traits) while ensuring that if the executed code moves assets beyond those specified, the changes will be rolled back.
4,62 tn
20
InnehÄllet pÄ den hÀr sidan tillhandahÄlls av tredje part. Om inte annat anges Àr OKX inte författare till den eller de artiklar som citeras och hÀmtar inte nÄgon upphovsrÀtt till materialet. InnehÄllet tillhandahÄlls endast i informationssyfte och representerar inte OKX:s Äsikter. Det Àr inte avsett att vara ett godkÀnnande av nÄgot slag och bör inte betraktas som investeringsrÄdgivning eller en uppmaning att köpa eller sÀlja digitala tillgÄngar. I den mÄn generativ AI anvÀnds för att tillhandahÄlla sammanfattningar eller annan information kan sÄdant AI-genererat innehÄll vara felaktigt eller inkonsekvent. LÀs den lÀnkade artikeln för mer detaljer och information. OKX ansvarar inte för innehÄll som finns pÄ tredje parts webbplatser. Innehav av digitala tillgÄngar, inklusive stabila kryptovalutor och NFT:er, innebÀr en hög grad av risk och kan fluktuera kraftigt. Du bör noga övervÀga om handel med eller innehav av digitala tillgÄngar Àr lÀmpligt för dig mot bakgrund av din ekonomiska situation.