-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #428 from o1-labs/feature/prove-callback
Callbacks via composability
- Loading branch information
Showing
30 changed files
with
16,221 additions
and
16,150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
The mina commit used to generate the backends for node and chrome is | ||
f8510eea3ba66dc877492f0218d83a9171576133 | ||
f6e1b20d62adc7db277bfcc6dfd7f5aed710928f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
./run src/examples/zkapps/hello_world/run.ts || exit 1 | ||
./run src/examples/zkapps/voting/run.ts || exit 1 | ||
./run src/examples/zkapps/hello_world/run.ts --bundle || exit 1 | ||
./run src/examples/zkapps/voting/run.ts --bundle || exit 1 | ||
./run src/examples/simple_zkapp.ts || exit 1 | ||
./run src/examples/zkapps/reducer/reducer_composite.ts || exit 1 | ||
./run src/examples/zkapps/composability.ts || exit 1 | ||
./run src/examples/zkapps/token_with_proofs.ts || exit 1 | ||
./run src/examples/zkapps/dex/run.ts || exit 1 | ||
./run src/examples/zkapps/dex/run.ts --bundle || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
npm run build:test | ||
for f in ./dist/test/**/*.unit-test.js; do | ||
for f in ./dist/node/**/*.unit-test.js; do | ||
echo "Running $f" | ||
node $f || exit 1; | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,33 @@ | ||
#!/usr/bin/env node | ||
import minimist from 'minimist'; | ||
import { buildAndImport } from './buildExample.js'; | ||
import { shutdown } from '../../dist/node/index.js'; | ||
import { buildAndImport, buildOne } from './buildExample.js'; | ||
|
||
let { | ||
_: [filePath], | ||
main, | ||
default: runDefault, | ||
keypair: keyPair, | ||
keep, | ||
bundle, | ||
} = minimist(process.argv.slice(2)); | ||
|
||
if (!filePath) { | ||
console.log(`Usage: | ||
npx snarky-run [file]`); | ||
process.exit(0); | ||
} | ||
|
||
let module = await buildAndImport(filePath, { keepFile: !!keep }); | ||
if (main) await module.main(); | ||
if (runDefault) await module.default(); | ||
if (keyPair) { | ||
console.log(module.default.generateKeypair()); | ||
if (!bundle) { | ||
let absPath = await buildOne(filePath); | ||
console.log(`running ${absPath}`); | ||
let module = await import(absPath); | ||
if (main) await module.main(); | ||
if (runDefault) await module.default(); | ||
let { shutdown } = await import('../../dist/node/index.js'); | ||
shutdown(); | ||
} else { | ||
let { isReady, shutdown } = await import('../../dist/node/index.js'); | ||
await isReady; | ||
let module = await buildAndImport(filePath, { keepFile: !!keep }); | ||
if (main) await module.main(); | ||
if (runDefault) await module.default(); | ||
shutdown(); | ||
} | ||
shutdown(); |
Oops, something went wrong.