@aztec/protocol-contracts 0.57.0 → 0.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/artifacts/AuthRegistry.d.json.ts +5 -3
  2. package/artifacts/AuthRegistry.json +1 -1
  3. package/artifacts/ContractClassRegisterer.d.json.ts +5 -3
  4. package/artifacts/ContractClassRegisterer.json +1 -1
  5. package/artifacts/ContractInstanceDeployer.d.json.ts +5 -3
  6. package/artifacts/ContractInstanceDeployer.json +1 -1
  7. package/artifacts/FeeJuice.d.json.ts +5 -3
  8. package/artifacts/FeeJuice.json +1 -1
  9. package/artifacts/MultiCallEntrypoint.d.json.ts +5 -3
  10. package/artifacts/MultiCallEntrypoint.json +1 -1
  11. package/artifacts/Router.d.json.ts +5 -3
  12. package/artifacts/Router.json +1 -1
  13. package/artifacts/keys/AuthRegistry/set_authorized_private.vk.data.json +134 -0
  14. package/artifacts/keys/ContractClassRegisterer/broadcast_private_function.vk.data.json +134 -0
  15. package/artifacts/keys/ContractClassRegisterer/broadcast_unconstrained_function.vk.data.json +134 -0
  16. package/artifacts/keys/ContractClassRegisterer/register.vk.data.json +134 -0
  17. package/artifacts/keys/ContractInstanceDeployer/deploy.vk.data.json +134 -0
  18. package/artifacts/keys/FeeJuice/claim.vk.data.json +134 -0
  19. package/artifacts/keys/FeeJuice/initialize.vk.data.json +134 -0
  20. package/artifacts/keys/MultiCallEntrypoint/entrypoint.vk.data.json +134 -0
  21. package/artifacts/keys/Router/check_block_number.vk.data.json +134 -0
  22. package/artifacts/keys/Router/check_timestamp.vk.data.json +134 -0
  23. package/dest/auth-registry/index.d.ts +0 -3
  24. package/dest/auth-registry/index.d.ts.map +1 -1
  25. package/dest/auth-registry/index.js +2 -12
  26. package/dest/build_protocol_contract_tree.d.ts +6 -0
  27. package/dest/build_protocol_contract_tree.d.ts.map +1 -0
  28. package/dest/build_protocol_contract_tree.js +12 -0
  29. package/dest/class-registerer/index.d.ts +0 -2
  30. package/dest/class-registerer/index.d.ts.map +1 -1
  31. package/dest/class-registerer/index.js +2 -9
  32. package/dest/fee-juice/index.d.ts +0 -4
  33. package/dest/fee-juice/index.d.ts.map +1 -1
  34. package/dest/fee-juice/index.js +2 -10
  35. package/dest/index.d.ts +3 -1
  36. package/dest/index.d.ts.map +1 -1
  37. package/dest/index.js +4 -2
  38. package/dest/instance-deployer/index.d.ts +0 -2
  39. package/dest/instance-deployer/index.d.ts.map +1 -1
  40. package/dest/instance-deployer/index.js +2 -9
  41. package/dest/multi-call-entrypoint/index.d.ts +0 -2
  42. package/dest/multi-call-entrypoint/index.d.ts.map +1 -1
  43. package/dest/multi-call-entrypoint/index.js +2 -6
  44. package/dest/protocol_contract.d.ts +4 -4
  45. package/dest/protocol_contract.d.ts.map +1 -1
  46. package/dest/protocol_contract.js +12 -9
  47. package/dest/protocol_contract_data.d.ts +17 -0
  48. package/dest/protocol_contract_data.d.ts.map +1 -0
  49. package/dest/protocol_contract_data.js +51 -0
  50. package/dest/protocol_contract_tree.d.ts +3 -0
  51. package/dest/protocol_contract_tree.d.ts.map +1 -0
  52. package/dest/protocol_contract_tree.js +21 -0
  53. package/dest/router/index.d.ts +0 -3
  54. package/dest/router/index.d.ts.map +1 -1
  55. package/dest/router/index.js +2 -12
  56. package/dest/scripts/generate_data.d.ts +2 -0
  57. package/dest/scripts/generate_data.d.ts.map +1 -0
  58. package/dest/scripts/generate_data.js +172 -0
  59. package/package.json +6 -6
  60. package/src/auth-registry/index.ts +1 -17
  61. package/src/build_protocol_contract_tree.ts +23 -0
  62. package/src/class-registerer/index.ts +1 -12
  63. package/src/fee-juice/index.ts +1 -14
  64. package/src/index.ts +3 -1
  65. package/src/instance-deployer/index.ts +1 -12
  66. package/src/multi-call-entrypoint/index.ts +1 -8
  67. package/src/protocol_contract.ts +20 -13
  68. package/src/protocol_contract_data.ts +63 -0
  69. package/src/protocol_contract_tree.ts +27 -0
  70. package/src/router/index.ts +1 -17
  71. package/src/scripts/generate_data.ts +208 -0
  72. package/dest/auth-registry/artifact.d.ts +0 -2
  73. package/dest/auth-registry/artifact.d.ts.map +0 -1
  74. package/dest/auth-registry/artifact.js +0 -4
  75. package/dest/class-registerer/artifact.d.ts +0 -2
  76. package/dest/class-registerer/artifact.d.ts.map +0 -1
  77. package/dest/class-registerer/artifact.js +0 -4
  78. package/dest/fee-juice/artifact.d.ts +0 -2
  79. package/dest/fee-juice/artifact.d.ts.map +0 -1
  80. package/dest/fee-juice/artifact.js +0 -4
  81. package/dest/instance-deployer/artifact.d.ts +0 -2
  82. package/dest/instance-deployer/artifact.d.ts.map +0 -1
  83. package/dest/instance-deployer/artifact.js +0 -4
  84. package/dest/multi-call-entrypoint/artifact.d.ts +0 -2
  85. package/dest/multi-call-entrypoint/artifact.d.ts.map +0 -1
  86. package/dest/multi-call-entrypoint/artifact.js +0 -4
  87. package/dest/router/artifact.d.ts +0 -2
  88. package/dest/router/artifact.d.ts.map +0 -1
  89. package/dest/router/artifact.js +0 -4
  90. package/src/auth-registry/artifact.ts +0 -6
  91. package/src/class-registerer/artifact.ts +0 -8
  92. package/src/fee-juice/artifact.ts +0 -6
  93. package/src/instance-deployer/artifact.ts +0 -8
  94. package/src/multi-call-entrypoint/artifact.ts +0 -6
  95. package/src/router/artifact.ts +0 -6
@@ -1,22 +1,6 @@
1
- import { AztecAddress, ROUTER_ADDRESS } from '@aztec/circuits.js';
2
-
3
1
  import { type ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
4
- import { RouterArtifact } from './artifact.js';
5
2
 
6
3
  /** Returns the canonical deployment of the router. */
7
4
  export function getCanonicalRouter(): ProtocolContract {
8
- const contract = getCanonicalProtocolContract(RouterArtifact, 1);
9
-
10
- if (!contract.address.equals(RouterAddress)) {
11
- throw new Error(
12
- `Incorrect address for router (got ${contract.address.toString()} but expected ${RouterAddress.toString()}). Check ROUTER_ADDRESS is set to the correct value in the constants files and run the protocol-contracts package tests.`,
13
- );
14
- }
15
- return contract;
5
+ return getCanonicalProtocolContract('Router');
16
6
  }
17
-
18
- export function getCanonicalRouterAddress(): AztecAddress {
19
- return getCanonicalRouter().address;
20
- }
21
-
22
- export const RouterAddress = AztecAddress.fromBigInt(ROUTER_ADDRESS);
@@ -0,0 +1,208 @@
1
+ import {
2
+ CANONICAL_AUTH_REGISTRY_ADDRESS,
3
+ DEPLOYER_CONTRACT_ADDRESS,
4
+ FEE_JUICE_ADDRESS,
5
+ Fr,
6
+ MULTI_CALL_ENTRYPOINT_ADDRESS,
7
+ REGISTERER_CONTRACT_ADDRESS,
8
+ ROUTER_ADDRESS,
9
+ getContractInstanceFromDeployParams,
10
+ } from '@aztec/circuits.js';
11
+ import { createConsoleLogger } from '@aztec/foundation/log';
12
+ import { loadContractArtifact } from '@aztec/types/abi';
13
+ import { type NoirCompiledContract } from '@aztec/types/noir';
14
+
15
+ import fs from 'fs/promises';
16
+ import path from 'path';
17
+
18
+ import { buildProtocolContractTree } from '../build_protocol_contract_tree.js';
19
+
20
+ const log = createConsoleLogger('aztec:autogenerate');
21
+
22
+ const noirContractsRoot = '../../noir-projects/noir-contracts';
23
+ const srcPath = path.join(noirContractsRoot, './target');
24
+ const destArtifactsDir = './artifacts';
25
+ const outputFilePath = './src/protocol_contract_data.ts';
26
+
27
+ const salt = new Fr(1);
28
+
29
+ const contractAddressMapping: { [name: string]: number } = {
30
+ AuthRegistry: CANONICAL_AUTH_REGISTRY_ADDRESS,
31
+ ContractInstanceDeployer: DEPLOYER_CONTRACT_ADDRESS,
32
+ ContractClassRegisterer: REGISTERER_CONTRACT_ADDRESS,
33
+ MultiCallEntrypoint: MULTI_CALL_ENTRYPOINT_ADDRESS,
34
+ FeeJuice: FEE_JUICE_ADDRESS,
35
+ Router: ROUTER_ADDRESS,
36
+ };
37
+
38
+ async function clearDestDir() {
39
+ try {
40
+ await fs.access(destArtifactsDir);
41
+ // If the directory exists, remove it recursively.
42
+ await fs.rm(destArtifactsDir, { recursive: true, force: true });
43
+ } catch (err: any) {
44
+ if (err.code === 'ENOENT') {
45
+ // If the directory does not exist, do nothing.
46
+ } else {
47
+ log(`Error removing dest directory: ${err}`);
48
+ }
49
+ }
50
+ await fs.mkdir(destArtifactsDir, { recursive: true });
51
+ }
52
+
53
+ function getPrivateFunctionNames(artifact: NoirCompiledContract) {
54
+ return artifact.functions.filter(fn => fn.custom_attributes.includes('private')).map(fn => fn.name);
55
+ }
56
+
57
+ async function copyArtifact(srcName: string, destName: string) {
58
+ const src = path.join(srcPath, `${srcName}.json`);
59
+ const artifact = JSON.parse(await fs.readFile(src, 'utf8')) as NoirCompiledContract;
60
+ const dest = path.join(destArtifactsDir, `${destName}.json`);
61
+ await fs.copyFile(src, dest);
62
+ return artifact;
63
+ }
64
+
65
+ async function copyVks(srcName: string, destName: string, fnNames: string[]) {
66
+ const deskVksDir = path.join(destArtifactsDir, 'keys', destName);
67
+ await fs.mkdir(deskVksDir, { recursive: true });
68
+
69
+ for (const fnName of fnNames) {
70
+ const src = path.join(srcPath, 'keys', `${srcName}-${fnName}.vk.data.json`);
71
+ const dest = path.join(deskVksDir, `${fnName}.vk.data.json`);
72
+ await fs.copyFile(src, dest);
73
+ }
74
+ }
75
+
76
+ function computeContractLeaf(artifact: NoirCompiledContract) {
77
+ const instance = getContractInstanceFromDeployParams(loadContractArtifact(artifact), { salt });
78
+ return instance.address;
79
+ }
80
+
81
+ function computeRoot(names: string[], leaves: Fr[]) {
82
+ const data = names.map((name, i) => ({ address: new Fr(contractAddressMapping[name]), leaf: leaves[i] }));
83
+ const tree = buildProtocolContractTree(data);
84
+ return Fr.fromBuffer(tree.root);
85
+ }
86
+
87
+ async function generateDeclarationFile(destName: string) {
88
+ const content = `
89
+ import { type NoirCompiledContract } from '@aztec/types/noir';
90
+ const circuit: NoirCompiledContract;
91
+ export = circuit;
92
+ `;
93
+ await fs.writeFile(path.join(destArtifactsDir, `${destName}.d.json.ts`), content);
94
+ }
95
+
96
+ function generateNames(names: string[]) {
97
+ return `
98
+ export const protocolContractNames = [
99
+ ${names.map(name => `'${name}'`).join(',\n')}
100
+ ] as const;
101
+
102
+ export type ProtocolContractName = typeof protocolContractNames[number];
103
+ `;
104
+ }
105
+
106
+ function generateArtifacts(names: string[]) {
107
+ const imports = names
108
+ .map(name => {
109
+ return `
110
+ import ${name}Json from '../artifacts/${name}.json' assert { type: 'json' };
111
+ `;
112
+ })
113
+ .join('\n');
114
+
115
+ const exports = names.map(name => `${name}: loadContractArtifact(${name}Json as NoirCompiledContract)`).join(',\n');
116
+
117
+ return `
118
+ ${imports}
119
+
120
+ export const ProtocolContractArtifact: Record<ProtocolContractName, ContractArtifact> = {
121
+ ${exports}
122
+ };
123
+ `;
124
+ }
125
+
126
+ function generateSalts(names: string[]) {
127
+ return `
128
+ export const ProtocolContractSalt: Record<ProtocolContractName, Fr> = {
129
+ ${names.map(name => `${name}: new Fr(${salt.toNumber()})`).join(',\n')}
130
+ };
131
+ `;
132
+ }
133
+
134
+ function generateContractAddresses(names: string[]) {
135
+ const addresses = names.map(name => `${name}: AztecAddress.fromBigInt(${contractAddressMapping[name]}n)`).join(',\n');
136
+ return `
137
+ export const ProtocolContractAddress: Record<ProtocolContractName, AztecAddress> = {
138
+ ${addresses}
139
+ };
140
+ `;
141
+ }
142
+
143
+ function generateContractLeaves(names: string[], leaves: Fr[]) {
144
+ return `
145
+ export const ProtocolContractLeaf = {
146
+ ${leaves.map((leaf, i) => `${names[i]}: Fr.fromString('${leaf.toString()}')`).join(',\n')}
147
+ };
148
+ `;
149
+ }
150
+
151
+ function generateRoot(names: string[], leaves: Fr[]) {
152
+ const root = computeRoot(names, leaves);
153
+ return `
154
+ export const protocolContractTreeRoot = Fr.fromString('${root.toString()}');
155
+ `;
156
+ }
157
+
158
+ async function generateOutputFile(names: string[], leaves: Fr[]) {
159
+ const content = `
160
+ // GENERATED FILE - DO NOT EDIT. RUN \`yarn generate\` or \`yarn generate:data\`
161
+ import { AztecAddress, Fr } from '@aztec/circuits.js';
162
+ import { type ContractArtifact } from '@aztec/foundation/abi';
163
+ import { loadContractArtifact } from '@aztec/types/abi';
164
+ import { type NoirCompiledContract } from '@aztec/types/noir';
165
+
166
+ ${generateNames(names)}
167
+
168
+ ${generateArtifacts(names)}
169
+
170
+ ${generateSalts(names)}
171
+
172
+ ${generateContractAddresses(names)}
173
+
174
+ ${generateContractLeaves(names, leaves)}
175
+
176
+ ${generateRoot(names, leaves)}
177
+ `;
178
+ await fs.writeFile(outputFilePath, content);
179
+ }
180
+
181
+ async function main() {
182
+ await clearDestDir();
183
+
184
+ const srcNames = JSON.parse(
185
+ await fs.readFile(path.join(noirContractsRoot, 'protocol_contracts.json'), 'utf8'),
186
+ ) as string[];
187
+
188
+ const leaves = [];
189
+ const destNames = srcNames.map(n => n.split('-')[1]);
190
+ for (let i = 0; i < srcNames.length; i++) {
191
+ const srcName = srcNames[i];
192
+ const destName = destNames[i];
193
+ const artifact = await copyArtifact(srcName, destName);
194
+ const fnNames = getPrivateFunctionNames(artifact);
195
+ await copyVks(srcName, destName, fnNames);
196
+ await generateDeclarationFile(destName);
197
+ leaves.push(computeContractLeaf(artifact));
198
+ }
199
+
200
+ await generateOutputFile(destNames, leaves);
201
+ }
202
+
203
+ try {
204
+ await main();
205
+ } catch (err: unknown) {
206
+ log(`Error copying protocol contract artifacts: ${err}`);
207
+ process.exit(1);
208
+ }
@@ -1,2 +0,0 @@
1
- export declare const AuthRegistryArtifact: import("@aztec/foundation/abi").ContractArtifact;
2
- //# sourceMappingURL=artifact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../src/auth-registry/artifact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,kDAAiE,CAAC"}
@@ -1,4 +0,0 @@
1
- import { loadContractArtifact } from '@aztec/types/abi';
2
- import AuthRegistryJson from '../../artifacts/AuthRegistry.json' assert { type: 'json' };
3
- export const AuthRegistryArtifact = loadContractArtifact(AuthRegistryJson);
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJ0aWZhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXV0aC1yZWdpc3RyeS9hcnRpZmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUd4RCxPQUFPLGdCQUFnQixNQUFNLG1DQUFtQyxDQUFDLFNBQVMsSUFBSSxFQUFFLE1BQU0sRUFBRSxDQUFDO0FBRXpGLE1BQU0sQ0FBQyxNQUFNLG9CQUFvQixHQUFHLG9CQUFvQixDQUFDLGdCQUF3QyxDQUFDLENBQUMifQ==
@@ -1,2 +0,0 @@
1
- export declare const ContractClassRegistererArtifact: import("@aztec/foundation/abi").ContractArtifact;
2
- //# sourceMappingURL=artifact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../src/class-registerer/artifact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,+BAA+B,kDAE3C,CAAC"}
@@ -1,4 +0,0 @@
1
- import { loadContractArtifact } from '@aztec/types/abi';
2
- import ContractClassRegistererJson from '../../artifacts/ContractClassRegisterer.json' assert { type: 'json' };
3
- export const ContractClassRegistererArtifact = loadContractArtifact(ContractClassRegistererJson);
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJ0aWZhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY2xhc3MtcmVnaXN0ZXJlci9hcnRpZmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUd4RCxPQUFPLDJCQUEyQixNQUFNLDhDQUE4QyxDQUFDLFNBQVMsSUFBSSxFQUFFLE1BQU0sRUFBRSxDQUFDO0FBRS9HLE1BQU0sQ0FBQyxNQUFNLCtCQUErQixHQUFHLG9CQUFvQixDQUNqRSwyQkFBbUQsQ0FDcEQsQ0FBQyJ9
@@ -1,2 +0,0 @@
1
- export declare const FeeJuiceArtifact: import("@aztec/foundation/abi").ContractArtifact;
2
- //# sourceMappingURL=artifact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../src/fee-juice/artifact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,kDAA6D,CAAC"}
@@ -1,4 +0,0 @@
1
- import { loadContractArtifact } from '@aztec/types/abi';
2
- import FeeJuiceJson from '../../artifacts/FeeJuice.json' assert { type: 'json' };
3
- export const FeeJuiceArtifact = loadContractArtifact(FeeJuiceJson);
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJ0aWZhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZmVlLWp1aWNlL2FydGlmYWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBR3hELE9BQU8sWUFBWSxNQUFNLCtCQUErQixDQUFDLFNBQVMsSUFBSSxFQUFFLE1BQU0sRUFBRSxDQUFDO0FBRWpGLE1BQU0sQ0FBQyxNQUFNLGdCQUFnQixHQUFHLG9CQUFvQixDQUFDLFlBQW9DLENBQUMsQ0FBQyJ9
@@ -1,2 +0,0 @@
1
- export declare const ContractInstanceDeployerArtifact: import("@aztec/foundation/abi").ContractArtifact;
2
- //# sourceMappingURL=artifact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../src/instance-deployer/artifact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gCAAgC,kDAE5C,CAAC"}
@@ -1,4 +0,0 @@
1
- import { loadContractArtifact } from '@aztec/types/abi';
2
- import ContractInstanceDeployerJson from '../../artifacts/ContractInstanceDeployer.json' assert { type: 'json' };
3
- export const ContractInstanceDeployerArtifact = loadContractArtifact(ContractInstanceDeployerJson);
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJ0aWZhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5zdGFuY2UtZGVwbG95ZXIvYXJ0aWZhY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFHeEQsT0FBTyw0QkFBNEIsTUFBTSwrQ0FBK0MsQ0FBQyxTQUFTLElBQUksRUFBRSxNQUFNLEVBQUUsQ0FBQztBQUVqSCxNQUFNLENBQUMsTUFBTSxnQ0FBZ0MsR0FBRyxvQkFBb0IsQ0FDbEUsNEJBQW9ELENBQ3JELENBQUMifQ==
@@ -1,2 +0,0 @@
1
- export declare const MultiCallEntrypointArtifact: import("@aztec/foundation/abi").ContractArtifact;
2
- //# sourceMappingURL=artifact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../src/multi-call-entrypoint/artifact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B,kDAAoE,CAAC"}
@@ -1,4 +0,0 @@
1
- import { loadContractArtifact } from '@aztec/types/abi';
2
- import MultiCallEntrypoint from '../../artifacts/MultiCallEntrypoint.json' assert { type: 'json' };
3
- export const MultiCallEntrypointArtifact = loadContractArtifact(MultiCallEntrypoint);
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJ0aWZhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbXVsdGktY2FsbC1lbnRyeXBvaW50L2FydGlmYWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBR3hELE9BQU8sbUJBQW1CLE1BQU0sMENBQTBDLENBQUMsU0FBUyxJQUFJLEVBQUUsTUFBTSxFQUFFLENBQUM7QUFFbkcsTUFBTSxDQUFDLE1BQU0sMkJBQTJCLEdBQUcsb0JBQW9CLENBQUMsbUJBQTJDLENBQUMsQ0FBQyJ9
@@ -1,2 +0,0 @@
1
- export declare const RouterArtifact: import("@aztec/foundation/abi").ContractArtifact;
2
- //# sourceMappingURL=artifact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../src/router/artifact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc,kDAA2D,CAAC"}
@@ -1,4 +0,0 @@
1
- import { loadContractArtifact } from '@aztec/types/abi';
2
- import RouterJson from '../../artifacts/Router.json' assert { type: 'json' };
3
- export const RouterArtifact = loadContractArtifact(RouterJson);
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJ0aWZhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcm91dGVyL2FydGlmYWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBR3hELE9BQU8sVUFBVSxNQUFNLDZCQUE2QixDQUFDLFNBQVMsSUFBSSxFQUFFLE1BQU0sRUFBRSxDQUFDO0FBRTdFLE1BQU0sQ0FBQyxNQUFNLGNBQWMsR0FBRyxvQkFBb0IsQ0FBQyxVQUFrQyxDQUFDLENBQUMifQ==
@@ -1,6 +0,0 @@
1
- import { loadContractArtifact } from '@aztec/types/abi';
2
- import { type NoirCompiledContract } from '@aztec/types/noir';
3
-
4
- import AuthRegistryJson from '../../artifacts/AuthRegistry.json' assert { type: 'json' };
5
-
6
- export const AuthRegistryArtifact = loadContractArtifact(AuthRegistryJson as NoirCompiledContract);
@@ -1,8 +0,0 @@
1
- import { loadContractArtifact } from '@aztec/types/abi';
2
- import { type NoirCompiledContract } from '@aztec/types/noir';
3
-
4
- import ContractClassRegistererJson from '../../artifacts/ContractClassRegisterer.json' assert { type: 'json' };
5
-
6
- export const ContractClassRegistererArtifact = loadContractArtifact(
7
- ContractClassRegistererJson as NoirCompiledContract,
8
- );
@@ -1,6 +0,0 @@
1
- import { loadContractArtifact } from '@aztec/types/abi';
2
- import { type NoirCompiledContract } from '@aztec/types/noir';
3
-
4
- import FeeJuiceJson from '../../artifacts/FeeJuice.json' assert { type: 'json' };
5
-
6
- export const FeeJuiceArtifact = loadContractArtifact(FeeJuiceJson as NoirCompiledContract);
@@ -1,8 +0,0 @@
1
- import { loadContractArtifact } from '@aztec/types/abi';
2
- import { type NoirCompiledContract } from '@aztec/types/noir';
3
-
4
- import ContractInstanceDeployerJson from '../../artifacts/ContractInstanceDeployer.json' assert { type: 'json' };
5
-
6
- export const ContractInstanceDeployerArtifact = loadContractArtifact(
7
- ContractInstanceDeployerJson as NoirCompiledContract,
8
- );
@@ -1,6 +0,0 @@
1
- import { loadContractArtifact } from '@aztec/types/abi';
2
- import { type NoirCompiledContract } from '@aztec/types/noir';
3
-
4
- import MultiCallEntrypoint from '../../artifacts/MultiCallEntrypoint.json' assert { type: 'json' };
5
-
6
- export const MultiCallEntrypointArtifact = loadContractArtifact(MultiCallEntrypoint as NoirCompiledContract);
@@ -1,6 +0,0 @@
1
- import { loadContractArtifact } from '@aztec/types/abi';
2
- import { type NoirCompiledContract } from '@aztec/types/noir';
3
-
4
- import RouterJson from '../../artifacts/Router.json' assert { type: 'json' };
5
-
6
- export const RouterArtifact = loadContractArtifact(RouterJson as NoirCompiledContract);