diff --git a/src/Lottery.ts b/src/Lottery.ts index aa8ca0c..57176d4 100644 --- a/src/Lottery.ts +++ b/src/Lottery.ts @@ -1,7 +1,25 @@ import { Field, SmartContract, state, State, method } from 'o1js'; export class Lottery extends SmartContract { + @state(Field) ticketRoot = State(); + @state(Field) ticketAmountRoot = State(); + @state(Field) roundResultRoot = State(); + init() { super.init(); + + // #TODO Permisions + } + + @method async buyTicket(ticketHash: Field, amount: Field) { + // #TODO + } + + @method async produceResult(round: Field) { + // #TODO + } + + @method async getReward(ticketHash: Field) { + // #TODO } }