Directory: contract_/audition
Description
Enable performers to register for an audition, optionally paying a fee in either native token or any ERC20 token.
Tasks
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
Directory:
contract_/auditionDescription
Enable performers to register for an audition, optionally paying a fee in either native token or any ERC20 token.
Tasks
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:
Acceptance Criteria
Forum Topic
https://t.me/MusicStrk_CJ/146