@aztec/protocol-contracts 0.30.0 → 0.31.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.
- package/dest/artifacts/ContractClassRegisterer.json +1 -1
- package/dest/artifacts/ContractInstanceDeployer.json +1 -1
- package/dest/artifacts/GasToken.json +1 -1
- package/dest/artifacts/MultiCallEntrypoint.json +1 -0
- package/dest/class-registerer/index.d.ts +2 -5
- package/dest/class-registerer/index.d.ts.map +1 -1
- package/dest/class-registerer/index.js +9 -7
- package/dest/multi-call-entrypoint/artifact.d.ts +2 -0
- package/dest/multi-call-entrypoint/artifact.d.ts.map +1 -0
- package/dest/multi-call-entrypoint/artifact.js +4 -0
- package/dest/multi-call-entrypoint/index.d.ts +5 -0
- package/dest/multi-call-entrypoint/index.d.ts.map +1 -0
- package/dest/multi-call-entrypoint/index.js +10 -0
- package/package.json +4 -4
- package/src/artifacts/ContractClassRegisterer.json +1 -1
- package/src/artifacts/ContractInstanceDeployer.json +1 -1
- package/src/artifacts/GasToken.json +1 -1
- package/src/artifacts/MultiCallEntrypoint.json +1 -0
- package/src/class-registerer/index.ts +9 -7
- package/src/multi-call-entrypoint/artifact.ts +6 -0
- package/src/multi-call-entrypoint/index.ts +12 -0
|
@@ -8,10 +8,12 @@ export function getCanonicalClassRegisterer(): ProtocolContract {
|
|
|
8
8
|
return getCanonicalProtocolContract(ContractClassRegistererArtifact, 1);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
let address: AztecAddress | undefined = undefined;
|
|
12
|
+
|
|
13
|
+
/** Returns the address for the canonical deployment of the class registerer */
|
|
14
|
+
export function getCanonicalClassRegistererAddress() {
|
|
15
|
+
if (!address) {
|
|
16
|
+
address = getCanonicalClassRegisterer().address;
|
|
17
|
+
}
|
|
18
|
+
return address;
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { loadContractArtifact } from '@aztec/types/abi';
|
|
2
|
+
import { 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);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AztecAddress, EthAddress, Point } from '@aztec/circuits.js';
|
|
2
|
+
|
|
3
|
+
import { ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
|
|
4
|
+
import { MultiCallEntrypointArtifact } from './artifact.js';
|
|
5
|
+
|
|
6
|
+
export function getCanonicalMultiCallEntrypointContract(): ProtocolContract {
|
|
7
|
+
return getCanonicalProtocolContract(MultiCallEntrypointArtifact, 1, [], Point.ZERO, EthAddress.ZERO);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function getCanonicalMultiCallEntrypointAddress(): AztecAddress {
|
|
11
|
+
return getCanonicalMultiCallEntrypointContract().address;
|
|
12
|
+
}
|