Specification — v0.2.42
Professional DX & DeFi
Technical specification for the DeFi templates, testing suites, and Tailwind CSS v4 migration.
01DeFi & Asset Templates
Introduction of production-ready smart contract templates that expand the ecosystem beyond simple tokens.
staking-pool.clar
Implements reward distribution and unlock logic for SIP-010 token staking.
nft-marketplace.clar
Implements listing, bidding, and purchase logic for SIP-009 NFT trading.
02Developer Experience (DX)
Standardizing the testing and building pipelines using Clarinet SDK and Vitest.
// vitest-contracts.config.ts
import { defineConfig } from "vitest/config";
import { vitestEnvironmentClarinet } from "vitest-environment-clarinet";
export default defineConfig({
test: {
environment: "clarinet",
poolOptions: {
threads: {
singleThread: true,
},
},
},
});