Skip to content

Commit

Permalink
Removed Lottery (left only PLottery for use)
Browse files Browse the repository at this point in the history
  • Loading branch information
aii23 committed Jul 26, 2024
1 parent 6a73569 commit a848a10
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 1,190 deletions.
8 changes: 4 additions & 4 deletions scripts/analyze.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { Lottery } from '../src/Lottery.js';
import { PLottery } from '../src/PLottery.js';
import { DistibutionProgram } from '../src/DistributionProof.js';
import { writeFileSync } from 'fs';

const lotteryResult = await Lottery.analyzeMethods();
const lotteryResult = await PLottery.analyzeMethods();
const distributionResult = await DistibutionProgram.analyzeMethods();

if (!Lottery._methods) {
if (!PLottery._methods) {
console.log("Can't find methods for Lottery");
throw new Error("Can't find methods for Lottery");
}

let result: { [name: string]: number } = {};

for (const method of Lottery._methods) {
for (const method of PLottery._methods) {
result[`Lottery_${method.methodName}`] =
lotteryResult[method.methodName].rows;
}
Expand Down
163 changes: 0 additions & 163 deletions scripts/buy_ticket.ts

This file was deleted.

Loading

0 comments on commit a848a10

Please sign in to comment.