-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
114 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import { type NoirCompiledContract, loadContractArtifact } from '@aztec/aztec.js'; | ||
import { fileURLToPath } from '@aztec/foundation/url'; | ||
|
||
import EcdsaAccountContractJson from '../artifacts/EcdsaAccount.json' assert { type: 'json' }; | ||
import { readFileSync } from 'fs'; | ||
import { dirname, resolve } from 'path'; | ||
|
||
export const EcdsaAccountContractArtifact = loadContractArtifact(EcdsaAccountContractJson as NoirCompiledContract); | ||
const artifactPath = resolve(dirname(fileURLToPath(import.meta.url)), '../artifacts/EcdsaAccount.json'); | ||
|
||
export const EcdsaAccountContractArtifact = loadContractArtifact( | ||
JSON.parse(readFileSync(artifactPath, 'utf-8').toString()) as NoirCompiledContract, | ||
); |
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,11 @@ | ||
import { type NoirCompiledContract, loadContractArtifact } from '@aztec/aztec.js'; | ||
import { fileURLToPath } from '@aztec/foundation/url'; | ||
|
||
import SchnorrAccountContractJson from '../artifacts/SchnorrAccount.json' assert { type: 'json' }; | ||
import { readFileSync } from 'fs'; | ||
import { dirname, resolve } from 'path'; | ||
|
||
export const SchnorrAccountContractArtifact = loadContractArtifact(SchnorrAccountContractJson as NoirCompiledContract); | ||
const artifactPath = resolve(dirname(fileURLToPath(import.meta.url)), '../artifacts/SchnorrAccount.json'); | ||
|
||
export const SchnorrAccountContractArtifact = loadContractArtifact( | ||
JSON.parse(readFileSync(artifactPath, 'utf-8').toString()) as NoirCompiledContract, | ||
); |
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,11 @@ | ||
import { type NoirCompiledContract, loadContractArtifact } from '@aztec/aztec.js'; | ||
import { fileURLToPath } from '@aztec/foundation/url'; | ||
|
||
import SchnorrSingleKeyAccountContractJson from '../artifacts/SchnorrSingleKeyAccount.json' assert { type: 'json' }; | ||
import { readFileSync } from 'fs'; | ||
import { dirname, resolve } from 'path'; | ||
|
||
const artifactPath = resolve(dirname(fileURLToPath(import.meta.url)), '../artifacts/SchnorrSingleKeyAccount.json'); | ||
|
||
export const SchnorrSingleKeyAccountContractArtifact = loadContractArtifact( | ||
SchnorrSingleKeyAccountContractJson as NoirCompiledContract, | ||
JSON.parse(readFileSync(artifactPath, 'utf-8').toString()) as NoirCompiledContract, | ||
); |
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
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
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
8 changes: 6 additions & 2 deletions
8
yarn-project/protocol-contracts/src/class-registerer/artifact.ts
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,8 +1,12 @@ | ||
import { fileURLToPath } from '@aztec/foundation/url'; | ||
import { loadContractArtifact } from '@aztec/types/abi'; | ||
import { type NoirCompiledContract } from '@aztec/types/noir'; | ||
|
||
import ContractClassRegistererJson from '../artifacts/ContractClassRegisterer.json' assert { type: 'json' }; | ||
import { readFileSync } from 'fs'; | ||
import { dirname, resolve } from 'path'; | ||
|
||
const artifactPath = resolve(dirname(fileURLToPath(import.meta.url)), '../artifacts/ContractClassRegisterer.json'); | ||
|
||
export const ContractClassRegistererArtifact = loadContractArtifact( | ||
ContractClassRegistererJson as NoirCompiledContract, | ||
JSON.parse(readFileSync(artifactPath, 'utf-8').toString()) as NoirCompiledContract, | ||
); |
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,6 +1,12 @@ | ||
import { fileURLToPath } from '@aztec/foundation/url'; | ||
import { loadContractArtifact } from '@aztec/types/abi'; | ||
import { type NoirCompiledContract } from '@aztec/types/noir'; | ||
|
||
import GasTokenJson from '../artifacts/GasToken.json' assert { type: 'json' }; | ||
import { readFileSync } from 'fs'; | ||
import { dirname, resolve } from 'path'; | ||
|
||
export const GasTokenArtifact = loadContractArtifact(GasTokenJson as NoirCompiledContract); | ||
const artifactPath = resolve(dirname(fileURLToPath(import.meta.url)), '../artifacts/GasToken.json'); | ||
|
||
export const GasTokenArtifact = loadContractArtifact( | ||
JSON.parse(readFileSync(artifactPath, 'utf-8').toString()) as NoirCompiledContract, | ||
); |
8 changes: 6 additions & 2 deletions
8
yarn-project/protocol-contracts/src/instance-deployer/artifact.ts
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,8 +1,12 @@ | ||
import { fileURLToPath } from '@aztec/foundation/url'; | ||
import { loadContractArtifact } from '@aztec/types/abi'; | ||
import { type NoirCompiledContract } from '@aztec/types/noir'; | ||
|
||
import ContractInstanceDeployerJson from '../artifacts/ContractInstanceDeployer.json' assert { type: 'json' }; | ||
import { readFileSync } from 'fs'; | ||
import { dirname, resolve } from 'path'; | ||
|
||
const artifactPath = resolve(dirname(fileURLToPath(import.meta.url)), '../artifacts/ContractInstanceDeployer.json'); | ||
|
||
export const ContractInstanceDeployerArtifact = loadContractArtifact( | ||
ContractInstanceDeployerJson as NoirCompiledContract, | ||
JSON.parse(readFileSync(artifactPath, 'utf-8').toString()) as NoirCompiledContract, | ||
); |
10 changes: 8 additions & 2 deletions
10
yarn-project/protocol-contracts/src/key-registry/artifact.ts
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,6 +1,12 @@ | ||
import { fileURLToPath } from '@aztec/foundation/url'; | ||
import { loadContractArtifact } from '@aztec/types/abi'; | ||
import { type NoirCompiledContract } from '@aztec/types/noir'; | ||
|
||
import KeyRegistryJson from '../artifacts/KeyRegistry.json' assert { type: 'json' }; | ||
import { readFileSync } from 'fs'; | ||
import { dirname, resolve } from 'path'; | ||
|
||
export const KeyRegistryArtifact = loadContractArtifact(KeyRegistryJson as NoirCompiledContract); | ||
const artifactPath = resolve(dirname(fileURLToPath(import.meta.url)), '../artifacts/KeyRegistry.json'); | ||
|
||
export const KeyRegistryArtifact = loadContractArtifact( | ||
JSON.parse(readFileSync(artifactPath, 'utf-8').toString()) as NoirCompiledContract, | ||
); |
10 changes: 8 additions & 2 deletions
10
yarn-project/protocol-contracts/src/multi-call-entrypoint/artifact.ts
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,6 +1,12 @@ | ||
import { fileURLToPath } from '@aztec/foundation/url'; | ||
import { loadContractArtifact } from '@aztec/types/abi'; | ||
import { type NoirCompiledContract } from '@aztec/types/noir'; | ||
|
||
import MultiCallEntrypoint from '../artifacts/MultiCallEntrypoint.json' assert { type: 'json' }; | ||
import { readFileSync } from 'fs'; | ||
import { dirname, resolve } from 'path'; | ||
|
||
export const MultiCallEntrypointArtifact = loadContractArtifact(MultiCallEntrypoint as NoirCompiledContract); | ||
const artifactPath = resolve(dirname(fileURLToPath(import.meta.url)), '../artifacts/MultiCallEntrypoint.json'); | ||
|
||
export const MultiCallEntrypointArtifact = loadContractArtifact( | ||
JSON.parse(readFileSync(artifactPath, 'utf-8').toString()) as NoirCompiledContract, | ||
); |
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