diff --git a/yarn-project/noir-contracts/Nargo.toml b/yarn-project/noir-contracts/Nargo.toml new file mode 100644 index 00000000000..ca4c4578083 --- /dev/null +++ b/yarn-project/noir-contracts/Nargo.toml @@ -0,0 +1,26 @@ +[workspace] +members = [ + "src/contracts/child_contract", + "src/contracts/docs_example_contract", + "src/contracts/easy_private_token_contract", + "src/contracts/ecdsa_account_contract", + "src/contracts/escrow_contract", +# "src/contracts/example_public_state_increment_BROKE", + "src/contracts/import_test_contract", + "src/contracts/lending_contract", + "src/contracts/multi_transfer_contract", + "src/contracts/native_token_contract", + "src/contracts/non_native_token_contract", + "src/contracts/parent_contract", + "src/contracts/pending_commitments_contract", + "src/contracts/pokeable_token_contract", + "src/contracts/price_feed_contract", + "src/contracts/private_token_airdrop_contract", + "src/contracts/private_token_contract", + "src/contracts/public_token_contract", + "src/contracts/schnorr_account_contract", + "src/contracts/schnorr_hardcoded_account_contract", + "src/contracts/schnorr_single_key_account_contract", + "src/contracts/test_contract", + "src/contracts/uniswap_contract", +] diff --git a/yarn-project/noir-contracts/src/scripts/copy_output.ts b/yarn-project/noir-contracts/src/scripts/copy_output.ts index 69846b59908..2dbc8a95926 100644 --- a/yarn-project/noir-contracts/src/scripts/copy_output.ts +++ b/yarn-project/noir-contracts/src/scripts/copy_output.ts @@ -50,19 +50,18 @@ const main = () => { if (!name) throw new Error(`Missing argument contract name`); const projectName = `${snakeCase(name)}_contract`; - const projectDirPath = `src/contracts/${projectName}`; const contractName = upperFirst(camelCase(name)); const artifactFile = `${projectName}-${contractName}.json`; - const buildJsonFilePath = `${projectDirPath}/target/${artifactFile}`; + const buildJsonFilePath = `./target/${artifactFile}`; const buildJson = JSON.parse(readFileSync(buildJsonFilePath).toString()); const debugArtifactFile = `debug_${artifactFile}`; let debug = undefined; try { - const debugJsonFilePath = `${projectDirPath}/target/${debugArtifactFile}`; + const debugJsonFilePath = `./target/${debugArtifactFile}`; const debugJson = JSON.parse(readFileSync(debugJsonFilePath).toString()); if (debugJson) { debug = debugJson; @@ -91,6 +90,7 @@ const main = () => { // Write a .nr contract interface, for consumption by other Noir Contracts if (INTERFACE_CONTRACTS.includes(name)) { + const projectDirPath = `src/contracts/${projectName}`; const noirInterfaceDestFilePath = `${projectDirPath}/src/interface.nr`; try { writeFileSync(noirInterfaceDestFilePath, generateNoirContractInterface(artifactJson));