Skip to content

[BUIDL Audition Onchain] SC-003: Registration & Fees #37

@jedstroke

Description

@jedstroke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Cairocairo programming langaugeODHack14Smart-contractonlydust-waveContribute to awesome OSS repos during OnlyDust's open source week

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions