@aztec/standard-contracts 0.0.1-commit.be03c316 → 0.0.1-commit.c52d6e7
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.
- package/artifacts/AuthRegistry.json +1 -1
- package/artifacts/HandshakeRegistry.json +1 -1
- package/artifacts/MultiCallEntrypoint.json +1 -1
- package/artifacts/PublicChecks.json +1 -1
- package/dest/contract_data.d.ts +2 -2
- package/dest/contract_data.d.ts.map +1 -1
- package/dest/contract_data.js +2 -2
- package/dest/index.d.ts +2 -1
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +1 -0
- package/dest/publishable_standard_contracts.d.ts +17 -0
- package/dest/publishable_standard_contracts.d.ts.map +1 -0
- package/dest/publishable_standard_contracts.js +23 -0
- package/package.json +3 -3
- package/src/contract_data.ts +2 -2
- package/src/index.ts +1 -0
- package/src/publishable_standard_contracts.ts +22 -0
|
@@ -13254,5 +13254,5 @@
|
|
|
13254
13254
|
}
|
|
13255
13255
|
},
|
|
13256
13256
|
"transpiled": true,
|
|
13257
|
-
"aztec_version": "0.0.1-commit.
|
|
13257
|
+
"aztec_version": "0.0.1-commit.c52d6e7"
|
|
13258
13258
|
}
|
package/dest/contract_data.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { FunctionSelector } from '@aztec/stdlib/abi';
|
|
|
3
3
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
4
4
|
import type { NoirCompiledContract } from '@aztec/stdlib/noir';
|
|
5
5
|
/** Root of the noir-contracts package relative to `yarn-project/standard-contracts`. */
|
|
6
|
-
export declare const NOIR_CONTRACTS_ROOT = "../../noir-projects/noir-contracts";
|
|
6
|
+
export declare const NOIR_CONTRACTS_ROOT = "../../noir-projects/labs/noir-contracts";
|
|
7
7
|
/** Directory holding the freshly-compiled Noir artifacts the generator reads from. */
|
|
8
8
|
export declare const NOIR_ARTIFACTS_SRC_PATH: string;
|
|
9
9
|
/** Output directory inside this package where the trimmed artifacts get copied. */
|
|
@@ -60,4 +60,4 @@ export declare function loadArtifact(srcName: string): Promise<NoirCompiledContr
|
|
|
60
60
|
* are performed.
|
|
61
61
|
*/
|
|
62
62
|
export declare function computeContractData(artifact: NoirCompiledContract): Promise<ContractData>;
|
|
63
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJhY3RfZGF0YS5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbnRyYWN0X2RhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWUEsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3BELE9BQU8sRUFBRSxnQkFBZ0IsRUFBd0IsTUFBTSxtQkFBbUIsQ0FBQztBQUMzRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFPM0QsT0FBTyxLQUFLLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUsvRCx3RkFBd0Y7QUFDeEYsZUFBTyxNQUFNLG1CQUFtQiw0Q0FBNEMsQ0FBQztBQUM3RSxzRkFBc0Y7QUFDdEYsZUFBTyxNQUFNLHVCQUF1QixRQUE2QyxDQUFDO0FBQ2xGLG1GQUFtRjtBQUNuRixlQUFPLE1BQU0sMkJBQTJCLGdCQUFnQixDQUFDO0FBQ3pELHVFQUF1RTtBQUN2RSxlQUFPLE1BQU0sa0NBQWtDLG9DQUFvQyxDQUFDO0FBSXBGLGVBQU8sTUFBTSw2QkFBNkIsVUFBd0UsQ0FBQztBQUVuSCx1RUFBdUU7QUFDdkUsZUFBTyxNQUFNLHNCQUFzQixJQUFZLENBQUM7QUFDaEQsa0ZBQWtGO0FBQ2xGLGVBQU8sTUFBTSwwQkFBMEIsY0FBc0IsQ0FBQztBQUU5RDs7Ozs7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AM,EAAE,EAAE,CAAA;KAAE,EAAE,CAAC;CAChE,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAGjF;AAED;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CAAC,QAAQ,EAAE,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAyB/F"}
|
package/dest/contract_data.js
CHANGED
|
@@ -17,7 +17,7 @@ import { computeContractAddressFromInstance, computeInitializationHash, getContr
|
|
|
17
17
|
import { PublicKeys } from '@aztec/stdlib/keys';
|
|
18
18
|
import { promises as fs } from 'fs';
|
|
19
19
|
import path from 'path';
|
|
20
|
-
/** Root of the noir-contracts package relative to `yarn-project/standard-contracts`. */ export const NOIR_CONTRACTS_ROOT = '../../noir-projects/noir-contracts';
|
|
20
|
+
/** Root of the noir-contracts package relative to `yarn-project/standard-contracts`. */ export const NOIR_CONTRACTS_ROOT = '../../noir-projects/labs/noir-contracts';
|
|
21
21
|
/** Directory holding the freshly-compiled Noir artifacts the generator reads from. */ export const NOIR_ARTIFACTS_SRC_PATH = path.join(NOIR_CONTRACTS_ROOT, './target');
|
|
22
22
|
/** Output directory inside this package where the trimmed artifacts get copied. */ export const STANDARD_ARTIFACTS_DEST_DIR = './artifacts';
|
|
23
23
|
/** Path of the generated TS data file (addresses, class IDs, etc.). */ export const STANDARD_CONTRACT_DATA_OUTPUT_PATH = './src/standard_contract_data.ts';
|
|
@@ -25,7 +25,7 @@ import path from 'path';
|
|
|
25
25
|
// source so circuits can reference standard-contract addresses at compile time (e.g. authwit and
|
|
26
26
|
// public_checks) without re-hashing at runtime.
|
|
27
27
|
export const NOIR_STANDARD_ADDRESSES_PATHS = [
|
|
28
|
-
'../../noir-projects/aztec-nr/aztec/src/standard_addresses.nr'
|
|
28
|
+
'../../noir-projects/labs/aztec-nr/aztec/src/standard_addresses.nr'
|
|
29
29
|
];
|
|
30
30
|
/** The deployment salt baked into every standard contract instance. */ export const STANDARD_CONTRACT_SALT = new Fr(1);
|
|
31
31
|
/** Every standard contract is deployed by the zero address (universal deploy). */ export const STANDARD_CONTRACT_DEPLOYER = AztecAddress.zero();
|
package/dest/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * from './auth-registry/index.js';
|
|
|
2
2
|
export * from './handshake-registry/index.js';
|
|
3
3
|
export * from './multi-call-entrypoint/index.js';
|
|
4
4
|
export * from './public-checks/index.js';
|
|
5
|
-
|
|
5
|
+
export * from './publishable_standard_contracts.js';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMscUNBQXFDLENBQUMifQ==
|
package/dest/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qCAAqC,CAAC"}
|
package/dest/index.js
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StandardContract } from './standard_contract.js';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the standard contracts that are published on-chain (class registration + instance
|
|
4
|
+
* publication) before their public functions can be called: AuthRegistry, PublicChecks, and
|
|
5
|
+
* HandshakeRegistry. These are exactly the contracts guarded by the `ensure*Published` e2e setup
|
|
6
|
+
* helpers.
|
|
7
|
+
*
|
|
8
|
+
* MultiCallEntrypoint is deliberately excluded: it is a client-side entrypoint used to encode
|
|
9
|
+
* batched private calls and is never published for public execution.
|
|
10
|
+
*
|
|
11
|
+
* This is the single source of truth for the set of standard contracts that test environments seed
|
|
12
|
+
* at genesis (registration/deployment nullifiers) and preload into the archiver contract store, so
|
|
13
|
+
* the two stay consistent — preloading a class whose nullifier is not seeded would recreate the
|
|
14
|
+
* publish-collision bug that genesis seeding avoids.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getPublishableStandardContracts(): Promise<StandardContract[]>;
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGlzaGFibGVfc3RhbmRhcmRfY29udHJhY3RzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcHVibGlzaGFibGVfc3RhbmRhcmRfY29udHJhY3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLE9BQU8sS0FBSyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFL0Q7Ozs7Ozs7Ozs7Ozs7R0FhRztBQUNILHdCQUFnQiwrQkFBK0IsSUFBSSxPQUFPLENBQUMsZ0JBQWdCLEVBQUUsQ0FBQyxDQUU3RSJ9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publishable_standard_contracts.d.ts","sourceRoot":"","sources":["../src/publishable_standard_contracts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,+BAA+B,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAE7E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getStandardAuthRegistry } from './auth-registry/index.js';
|
|
2
|
+
import { getStandardHandshakeRegistry } from './handshake-registry/index.js';
|
|
3
|
+
import { getStandardPublicChecks } from './public-checks/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* Returns the standard contracts that are published on-chain (class registration + instance
|
|
6
|
+
* publication) before their public functions can be called: AuthRegistry, PublicChecks, and
|
|
7
|
+
* HandshakeRegistry. These are exactly the contracts guarded by the `ensure*Published` e2e setup
|
|
8
|
+
* helpers.
|
|
9
|
+
*
|
|
10
|
+
* MultiCallEntrypoint is deliberately excluded: it is a client-side entrypoint used to encode
|
|
11
|
+
* batched private calls and is never published for public execution.
|
|
12
|
+
*
|
|
13
|
+
* This is the single source of truth for the set of standard contracts that test environments seed
|
|
14
|
+
* at genesis (registration/deployment nullifiers) and preload into the archiver contract store, so
|
|
15
|
+
* the two stay consistent — preloading a class whose nullifier is not seeded would recreate the
|
|
16
|
+
* publish-collision bug that genesis seeding avoids.
|
|
17
|
+
*/ export function getPublishableStandardContracts() {
|
|
18
|
+
return Promise.all([
|
|
19
|
+
getStandardAuthRegistry(),
|
|
20
|
+
getStandardPublicChecks(),
|
|
21
|
+
getStandardHandshakeRegistry()
|
|
22
|
+
]);
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@aztec/standard-contracts",
|
|
3
3
|
"homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/standard-contracts",
|
|
4
4
|
"description": "Standard non-protocol contracts for the Aztec Network",
|
|
5
|
-
"version": "0.0.1-commit.
|
|
5
|
+
"version": "0.0.1-commit.c52d6e7",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./dest/index.js",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
78
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
77
|
+
"@aztec/foundation": "0.0.1-commit.c52d6e7",
|
|
78
|
+
"@aztec/stdlib": "0.0.1-commit.c52d6e7",
|
|
79
79
|
"tslib": "^2.4.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
package/src/contract_data.ts
CHANGED
|
@@ -25,7 +25,7 @@ import { promises as fs } from 'fs';
|
|
|
25
25
|
import path from 'path';
|
|
26
26
|
|
|
27
27
|
/** Root of the noir-contracts package relative to `yarn-project/standard-contracts`. */
|
|
28
|
-
export const NOIR_CONTRACTS_ROOT = '../../noir-projects/noir-contracts';
|
|
28
|
+
export const NOIR_CONTRACTS_ROOT = '../../noir-projects/labs/noir-contracts';
|
|
29
29
|
/** Directory holding the freshly-compiled Noir artifacts the generator reads from. */
|
|
30
30
|
export const NOIR_ARTIFACTS_SRC_PATH = path.join(NOIR_CONTRACTS_ROOT, './target');
|
|
31
31
|
/** Output directory inside this package where the trimmed artifacts get copied. */
|
|
@@ -35,7 +35,7 @@ export const STANDARD_CONTRACT_DATA_OUTPUT_PATH = './src/standard_contract_data.
|
|
|
35
35
|
// The `aztec` crate in aztec-nr needs a twin of the generated addresses module stamped into its
|
|
36
36
|
// source so circuits can reference standard-contract addresses at compile time (e.g. authwit and
|
|
37
37
|
// public_checks) without re-hashing at runtime.
|
|
38
|
-
export const NOIR_STANDARD_ADDRESSES_PATHS = ['../../noir-projects/aztec-nr/aztec/src/standard_addresses.nr'];
|
|
38
|
+
export const NOIR_STANDARD_ADDRESSES_PATHS = ['../../noir-projects/labs/aztec-nr/aztec/src/standard_addresses.nr'];
|
|
39
39
|
|
|
40
40
|
/** The deployment salt baked into every standard contract instance. */
|
|
41
41
|
export const STANDARD_CONTRACT_SALT = new Fr(1);
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getStandardAuthRegistry } from './auth-registry/index.js';
|
|
2
|
+
import { getStandardHandshakeRegistry } from './handshake-registry/index.js';
|
|
3
|
+
import { getStandardPublicChecks } from './public-checks/index.js';
|
|
4
|
+
import type { StandardContract } from './standard_contract.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Returns the standard contracts that are published on-chain (class registration + instance
|
|
8
|
+
* publication) before their public functions can be called: AuthRegistry, PublicChecks, and
|
|
9
|
+
* HandshakeRegistry. These are exactly the contracts guarded by the `ensure*Published` e2e setup
|
|
10
|
+
* helpers.
|
|
11
|
+
*
|
|
12
|
+
* MultiCallEntrypoint is deliberately excluded: it is a client-side entrypoint used to encode
|
|
13
|
+
* batched private calls and is never published for public execution.
|
|
14
|
+
*
|
|
15
|
+
* This is the single source of truth for the set of standard contracts that test environments seed
|
|
16
|
+
* at genesis (registration/deployment nullifiers) and preload into the archiver contract store, so
|
|
17
|
+
* the two stay consistent — preloading a class whose nullifier is not seeded would recreate the
|
|
18
|
+
* publish-collision bug that genesis seeding avoids.
|
|
19
|
+
*/
|
|
20
|
+
export function getPublishableStandardContracts(): Promise<StandardContract[]> {
|
|
21
|
+
return Promise.all([getStandardAuthRegistry(), getStandardPublicChecks(), getStandardHandshakeRegistry()]);
|
|
22
|
+
}
|