🟧 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,18k
17
Innholdet på denne siden er levert av tredjeparter. Med mindre annet er oppgitt, er ikke OKX forfatteren av de siterte artikkelen(e) og krever ingen opphavsrett til materialet. Innholdet er kun gitt for informasjonsformål og representerer ikke synspunktene til OKX. Det er ikke ment å være en anbefaling av noe slag og bør ikke betraktes som investeringsråd eller en oppfordring om å kjøpe eller selge digitale aktiva. I den grad generativ AI brukes til å gi sammendrag eller annen informasjon, kan slikt AI-generert innhold være unøyaktig eller inkonsekvent. Vennligst les den koblede artikkelen for mer detaljer og informasjon. OKX er ikke ansvarlig for innhold som er vert på tredjeparts nettsteder. Beholdning av digitale aktiva, inkludert stablecoins og NFT-er, innebærer en høy grad av risiko og kan svinge mye. Du bør nøye vurdere om handel eller innehav av digitale aktiva passer for deg i lys av din økonomiske tilstand.