Rename the `sindri.json` template file and add `circuitPath`.

pull/4512/head
Evan Sangaline 10 months ago committed by Aniket
parent e5742f434b
commit 49ade40d6c
  1. 4
      libs/remix-ws-templates/src/script-templates/sindri/index.ts
  2. 8
      libs/remix-ws-templates/src/script-templates/sindri/sindri.conf
  3. 9
      libs/remix-ws-templates/src/script-templates/sindri/sindri.json

@ -22,7 +22,7 @@ export const sindriScripts = async (plugin) => {
// Only write out the `sindri.json` file if it doesn't already exist.
let sindriJsonExists: boolean
try {
await plugin.call('fileManager', 'readFile', './fake.json')
await plugin.call('fileManager', 'readFile', './sindri.json')
sindriJsonExists = true
} catch {
sindriJsonExists = false
@ -31,7 +31,7 @@ export const sindriScripts = async (plugin) => {
await plugin.call('fileManager', 'writeFile',
'sindri.json',
// @ts-ignore
(await import('raw-loader!./sindri.conf')).default)
(await import('./sindri.json.raw!=!raw-loader!./sindri.json')).default)
}
await plugin.call('fileManager', 'open', 'scripts/sindri/sindri.ts')

@ -1,8 +0,0 @@
{
"$schema": "https://sindri.app/api/v1/sindri-manifest-schema.json",
"name": "circuit_name",
"circuitType": "circom",
"curve": "bn254",
"provingScheme": "groth16",
"witnessCompiler": "c++"
}

@ -0,0 +1,9 @@
{
"$schema": "https://sindri.app/api/v1/sindri-manifest-schema.json",
"name": "circuit_name",
"circuitPath": "./circuits/circuit.circom",
"circuitType": "circom",
"curve": "bn254",
"provingScheme": "groth16",
"witnessCompiler": "c++"
}
Loading…
Cancel
Save