-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
Cairocairo programming langaugecairo programming langaugeODHack14Smart-contractonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Description
Directory: contract_/audition
Description
Enable performers to register for an audition, optionally paying a fee in either native token or any ERC20 token.
Tasks
- Function:
register_performer(audition_id: felt, performer: felt, token_address: felt?, fee_amount: felt?)If fee_amount > 0, require allowance & transfer of that ERC-20 token or native ETH.
If fee_amount = 0, allow free registration.
Emit PerformerRegistered(audition_id, performer, token_address, fee_amount).
Refund logic if audition is canceled or refunded by owner.
Unit tests covering:
- Native-token registration
- ERC-20 registration
- Free registration
- Refund paths
Acceptance Criteria
- Registration works with zero fee.
- Registration works with native fee.
- Registration works with ERC-20 fee.
- Invalid fee or missing allowance reverts.
Forum Topic
https://t.me/MusicStrk_CJ/146
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Cairocairo programming langaugecairo programming langaugeODHack14Smart-contractonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week