Challenges

Master Stylus development through hands-on coding challenges. Start from the basics and work your way up to advanced patterns.

Your Progress

0 / 5 completed

30 total challenges planned

0%

Keep it up! You're doing great.

Coming Soon
25 more challenges
intermediate
access-control

Ownership Pattern

Implement the Ownable pattern to restrict access to admin functions.

25m
intermediate
payments

Payable Functions

Learn to accept and handle ETH payments in your Stylus contracts.

30m
intermediate
storage

Storage Mappings

Master StorageMap for key-value data storage patterns.

25m
intermediate
storage

Storage Vectors

Work with dynamic arrays using StorageVec for flexible data storage.

25m
intermediate
tokens

ERC-20 Token

Build a complete ERC-20 fungible token implementation.

45m
advanced
tokens

ERC-721 NFT

Create a non-fungible token contract with minting capabilities.

60m
advanced
access-control

Role-Based Access Control

Implement a flexible role-based permission system.

40m
advanced
security

Reentrancy Guard

Protect your contracts from reentrancy attacks.

35m
intermediate
security

Time Locks

Implement time-based restrictions and delays in your contracts.

30m
advanced
applications

Multi-Signature Wallet

Build a wallet requiring multiple approvals for transactions.

60m
advanced
defi

Token Staking

Create a staking contract with reward distribution.

50m
advanced
defi

Simple AMM

Build a basic automated market maker for token swaps.

70m
intermediate
governance

Voting System

Implement a decentralized voting mechanism with proposals.

40m
advanced
governance

DAO Governor

Build a full governance system for decentralized organizations.

75m
intermediate
applications

Escrow Service

Create a trustless escrow for secure transactions.

35m
intermediate
applications

English Auction

Implement a timed auction with bidding functionality.

45m
intermediate
applications

Dutch Auction

Build a descending price auction mechanism.

40m
advanced
tokens

Merkle Airdrop

Distribute tokens efficiently using Merkle proofs.

50m
advanced
defi

Flash Loans

Implement uncollateralized loans that must be repaid in one transaction.

55m
advanced
defi

Yield Vault

Create an ERC-4626 compliant tokenized vault.

60m
advanced
integrations

Oracle Integration

Integrate price feeds and external data into your contracts.

40m
intermediate
integrations

Cross-Contract Calls

Call other contracts and handle responses safely.

35m
advanced
patterns

Upgradeable Proxy

Implement the proxy pattern for upgradeable contracts.

55m
advanced
patterns

Factory Pattern

Deploy new contracts from within a contract.

45m
advanced
optimization

Gas Optimization

Learn advanced techniques to minimize gas costs.

50m