Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
"wake.compiler.solc.remappings": []
}
9 changes: 9 additions & 0 deletions __mocks__/@sharibo/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,14 @@ export const getCircle = vi.fn(
size: 5,
round: 0,
pot: 0n,
contributors: [],
cancelled: false,
}),
);

export const cancelCircle = vi.fn(
async (_client: SharaboClient, _args: unknown): Promise<TxResult<void>> => ({
result: undefined,
hash: "mockCancelHash",
}),
);
3 changes: 2 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"scripts": {
"sync-circuit": "node scripts/sync-circuit.mjs",
"dev:circuits": "node scripts/sync-circuit.mjs --watch",
"dev": "npm run sync-circuit && vite",
"dev": "vite",
"dev:full": "npm run sync-circuit && vite",
"build": "npm run sync-circuit && vite build",
"preview": "vite preview",
"test": "vitest run"
Expand Down
Loading