@aztec/standard-contracts 5.0.0-nightly.20260708 → 5.0.0-nightly.20260710
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/handshake-registry/constants.d.ts +9 -3
- package/dest/handshake-registry/constants.d.ts.map +1 -1
- package/dest/handshake-registry/constants.js +10 -0
- package/dest/handshake-registry/index.d.ts +2 -2
- package/dest/handshake-registry/index.d.ts.map +1 -1
- package/dest/handshake-registry/index.js +1 -1
- 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/handshake-registry/constants.ts +13 -0
- package/src/handshake-registry/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/publishable_standard_contracts.ts +22 -0
|
@@ -13088,5 +13088,5 @@
|
|
|
13088
13088
|
}
|
|
13089
13089
|
},
|
|
13090
13090
|
"transpiled": true,
|
|
13091
|
-
"aztec_version": "5.0.0-nightly.
|
|
13091
|
+
"aztec_version": "5.0.0-nightly.20260710"
|
|
13092
13092
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
1
2
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
2
3
|
export declare const STANDARD_HANDSHAKE_REGISTRY_ADDRESS: AztecAddress;
|
|
3
|
-
export declare const STANDARD_HANDSHAKE_REGISTRY_CLASS_ID:
|
|
4
|
-
export declare const STANDARD_HANDSHAKE_REGISTRY_SALT:
|
|
5
|
-
|
|
4
|
+
export declare const STANDARD_HANDSHAKE_REGISTRY_CLASS_ID: Fr;
|
|
5
|
+
export declare const STANDARD_HANDSHAKE_REGISTRY_SALT: Fr;
|
|
6
|
+
/**
|
|
7
|
+
* Request kind under which the HandshakeRegistry asks for a recipient's interactive-handshake signature through the
|
|
8
|
+
* `resolveCustomRequest` hook. Mirrors `INTERACTIVE_HANDSHAKE_REQUEST_KIND` in the registry contract.
|
|
9
|
+
*/
|
|
10
|
+
export declare const INTERACTIVE_HANDSHAKE_REQUEST_KIND: Fr;
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaGFuZHNoYWtlLXJlZ2lzdHJ5L2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJQSxPQUFPLEtBQUssRUFBRSxFQUFFLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUN6RCxPQUFPLEtBQUssRUFBRSxZQUFZLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUloRSxlQUFPLE1BQU0sbUNBQW1DLEVBQUUsWUFBd0QsQ0FBQztBQUMzRyxlQUFPLE1BQU0sb0NBQW9DLElBQTRDLENBQUM7QUFDOUYsZUFBTyxNQUFNLGdDQUFnQyxJQUF5QyxDQUFDO0FBRXZGOzs7R0FHRztBQUlILGVBQU8sTUFBTSxrQ0FBa0MsRUFBRSxFQUUvQyxDQUFDIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/handshake-registry/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/handshake-registry/constants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAIhE,eAAO,MAAM,mCAAmC,EAAE,YAAwD,CAAC;AAC3G,eAAO,MAAM,oCAAoC,IAA4C,CAAC;AAC9F,eAAO,MAAM,gCAAgC,IAAyC,CAAC;AAEvF;;;GAGG;AAIH,eAAO,MAAM,kCAAkC,EAAE,EAE/C,CAAC"}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
// Lightweight metadata leaf export for browser bundles: importing from
|
|
2
2
|
// `@aztec/standard-contracts/handshake-registry/constants` avoids dragging in the
|
|
3
3
|
// `HandshakeRegistry.json` static import.
|
|
4
|
+
import { sha256ToField } from '@aztec/foundation/crypto/sha256';
|
|
4
5
|
import { StandardContractAddress, StandardContractClassId, StandardContractSalt } from '../standard_contract_data.js';
|
|
5
6
|
export const STANDARD_HANDSHAKE_REGISTRY_ADDRESS = StandardContractAddress.HandshakeRegistry;
|
|
6
7
|
export const STANDARD_HANDSHAKE_REGISTRY_CLASS_ID = StandardContractClassId.HandshakeRegistry;
|
|
7
8
|
export const STANDARD_HANDSHAKE_REGISTRY_SALT = StandardContractSalt.HandshakeRegistry;
|
|
9
|
+
/**
|
|
10
|
+
* Request kind under which the HandshakeRegistry asks for a recipient's interactive-handshake signature through the
|
|
11
|
+
* `resolveCustomRequest` hook. Mirrors `INTERACTIVE_HANDSHAKE_REQUEST_KIND` in the registry contract.
|
|
12
|
+
*/ // TODO: remove this mirrored constant and read the value from the HandshakeRegistry artifact once the contract
|
|
13
|
+
// global can be `#[abi]`-exported. Fixed upstream but not yet released:
|
|
14
|
+
// https://github.com/noir-lang/noir/pull/12714 and https://github.com/noir-lang/noir/issues/12620.
|
|
15
|
+
export const INTERACTIVE_HANDSHAKE_REQUEST_KIND = sha256ToField([
|
|
16
|
+
Buffer.from('HANDSHAKE_REGISTRY::INTERACTIVE_HANDSHAKE_REQUEST')
|
|
17
|
+
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StandardContract } from '../standard_contract.js';
|
|
2
|
-
export { STANDARD_HANDSHAKE_REGISTRY_ADDRESS, STANDARD_HANDSHAKE_REGISTRY_CLASS_ID, STANDARD_HANDSHAKE_REGISTRY_SALT, } from './constants.js';
|
|
2
|
+
export { INTERACTIVE_HANDSHAKE_REQUEST_KIND, STANDARD_HANDSHAKE_REGISTRY_ADDRESS, STANDARD_HANDSHAKE_REGISTRY_CLASS_ID, STANDARD_HANDSHAKE_REGISTRY_SALT, } from './constants.js';
|
|
3
3
|
export declare const HandshakeRegistryArtifact: import("@aztec/stdlib/abi").ContractArtifact;
|
|
4
4
|
/** Returns the standard deployment of the handshake registry. */
|
|
5
5
|
export declare function getStandardHandshakeRegistry(): Promise<StandardContract>;
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9oYW5kc2hha2UtcmVnaXN0cnkvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS0EsT0FBTyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUVoRSxPQUFPLEVBQ0wsa0NBQWtDLEVBQ2xDLG1DQUFtQyxFQUNuQyxvQ0FBb0MsRUFDcEMsZ0NBQWdDLEdBQ2pDLE1BQU0sZ0JBQWdCLENBQUM7QUFFeEIsZUFBTyxNQUFNLHlCQUF5Qiw4Q0FBc0UsQ0FBQztBQUk3RyxpRUFBaUU7QUFDakUsd0JBQWdCLDRCQUE0QixJQUFJLE9BQU8sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUt4RSJ9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handshake-registry/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,gCAAgC,GACjC,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,yBAAyB,8CAAsE,CAAC;AAI7G,iEAAiE;AACjE,wBAAgB,4BAA4B,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAKxE"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handshake-registry/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EACL,kCAAkC,EAClC,mCAAmC,EACnC,oCAAoC,EACpC,gCAAgC,GACjC,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,yBAAyB,8CAAsE,CAAC;AAI7G,iEAAiE;AACjE,wBAAgB,4BAA4B,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAKxE"}
|
|
@@ -3,7 +3,7 @@ import HandshakeRegistryJson from '../../artifacts/HandshakeRegistry.json' with
|
|
|
3
3
|
type: 'json'
|
|
4
4
|
};
|
|
5
5
|
import { makeStandardContract } from '../make_standard_contract.js';
|
|
6
|
-
export { STANDARD_HANDSHAKE_REGISTRY_ADDRESS, STANDARD_HANDSHAKE_REGISTRY_CLASS_ID, STANDARD_HANDSHAKE_REGISTRY_SALT } from './constants.js';
|
|
6
|
+
export { INTERACTIVE_HANDSHAKE_REQUEST_KIND, STANDARD_HANDSHAKE_REGISTRY_ADDRESS, STANDARD_HANDSHAKE_REGISTRY_CLASS_ID, STANDARD_HANDSHAKE_REGISTRY_SALT } from './constants.js';
|
|
7
7
|
export const HandshakeRegistryArtifact = loadContractArtifact(HandshakeRegistryJson);
|
|
8
8
|
let standardContract;
|
|
9
9
|
/** Returns the standard deployment of the handshake registry. */ export function getStandardHandshakeRegistry() {
|
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": "5.0.0-nightly.
|
|
5
|
+
"version": "5.0.0-nightly.20260710",
|
|
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": "5.0.0-nightly.
|
|
78
|
-
"@aztec/stdlib": "5.0.0-nightly.
|
|
77
|
+
"@aztec/foundation": "5.0.0-nightly.20260710",
|
|
78
|
+
"@aztec/stdlib": "5.0.0-nightly.20260710",
|
|
79
79
|
"tslib": "^2.4.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Lightweight metadata leaf export for browser bundles: importing from
|
|
2
2
|
// `@aztec/standard-contracts/handshake-registry/constants` avoids dragging in the
|
|
3
3
|
// `HandshakeRegistry.json` static import.
|
|
4
|
+
import { sha256ToField } from '@aztec/foundation/crypto/sha256';
|
|
5
|
+
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
4
6
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
5
7
|
|
|
6
8
|
import { StandardContractAddress, StandardContractClassId, StandardContractSalt } from '../standard_contract_data.js';
|
|
@@ -8,3 +10,14 @@ import { StandardContractAddress, StandardContractClassId, StandardContractSalt
|
|
|
8
10
|
export const STANDARD_HANDSHAKE_REGISTRY_ADDRESS: AztecAddress = StandardContractAddress.HandshakeRegistry;
|
|
9
11
|
export const STANDARD_HANDSHAKE_REGISTRY_CLASS_ID = StandardContractClassId.HandshakeRegistry;
|
|
10
12
|
export const STANDARD_HANDSHAKE_REGISTRY_SALT = StandardContractSalt.HandshakeRegistry;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Request kind under which the HandshakeRegistry asks for a recipient's interactive-handshake signature through the
|
|
16
|
+
* `resolveCustomRequest` hook. Mirrors `INTERACTIVE_HANDSHAKE_REQUEST_KIND` in the registry contract.
|
|
17
|
+
*/
|
|
18
|
+
// TODO: remove this mirrored constant and read the value from the HandshakeRegistry artifact once the contract
|
|
19
|
+
// global can be `#[abi]`-exported. Fixed upstream but not yet released:
|
|
20
|
+
// https://github.com/noir-lang/noir/pull/12714 and https://github.com/noir-lang/noir/issues/12620.
|
|
21
|
+
export const INTERACTIVE_HANDSHAKE_REQUEST_KIND: Fr = sha256ToField([
|
|
22
|
+
Buffer.from('HANDSHAKE_REGISTRY::INTERACTIVE_HANDSHAKE_REQUEST'),
|
|
23
|
+
]);
|
|
@@ -6,6 +6,7 @@ import { makeStandardContract } from '../make_standard_contract.js';
|
|
|
6
6
|
import type { StandardContract } from '../standard_contract.js';
|
|
7
7
|
|
|
8
8
|
export {
|
|
9
|
+
INTERACTIVE_HANDSHAKE_REQUEST_KIND,
|
|
9
10
|
STANDARD_HANDSHAKE_REGISTRY_ADDRESS,
|
|
10
11
|
STANDARD_HANDSHAKE_REGISTRY_CLASS_ID,
|
|
11
12
|
STANDARD_HANDSHAKE_REGISTRY_SALT,
|
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
|
+
}
|