Skip to content

CONTRACTS: Betting Contract #10

@tosoham

Description

@tosoham

Implement /contracts/src/Betting.cairo:

  • Mapping: bets: Dict<(roomId, agentId), Uint256>

  • place_bet(roomId, agentId, amount) → records bet, locks tokens

  • withdraw_winnings(roomId, agentId) → transfers to winner

Deliverable: On-chain betting contract.

Metadata

Metadata

Assignees

Labels

SSmall issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions