@aztec/protocol-contracts 0.24.0 → 0.26.1
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 -2617
- package/dest/artifacts/ContractInstanceDeployer.json +1 -1309
- package/dest/artifacts/GasToken.json +1 -0
- package/dest/class-registerer/index.js +1 -1
- package/dest/gas-token/artifact.d.ts +2 -0
- package/dest/gas-token/artifact.d.ts.map +1 -0
- package/dest/gas-token/artifact.js +4 -0
- package/dest/gas-token/index.d.ts +5 -0
- package/dest/gas-token/index.d.ts.map +1 -0
- package/dest/gas-token/index.js +8 -0
- package/dest/instance-deployer/index.d.ts.map +1 -1
- package/dest/instance-deployer/index.js +3 -3
- package/package.json +6 -6
- package/src/artifacts/ContractClassRegisterer.json +1 -2617
- package/src/artifacts/ContractInstanceDeployer.json +1 -1309
- package/src/artifacts/GasToken.json +1 -0
- package/src/class-registerer/index.ts +1 -1
- package/src/gas-token/artifact.ts +6 -0
- package/src/gas-token/index.ts +9 -0
- package/src/instance-deployer/index.ts +2 -4
|
@@ -13,5 +13,5 @@ export function getCanonicalClassRegisterer(): ProtocolContract {
|
|
|
13
13
|
* @remarks This should not change often, hence we hardcode it to save from having to recompute it every time.
|
|
14
14
|
*/
|
|
15
15
|
export const ClassRegistererAddress = AztecAddress.fromString(
|
|
16
|
-
'
|
|
16
|
+
'0x251ab40f36a148a5ac88fe3c2398ec1968d5676b0066299278610b870d738a9e',
|
|
17
17
|
);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { loadContractArtifact } from '@aztec/types/abi';
|
|
2
|
+
import { NoirCompiledContract } from '@aztec/types/noir';
|
|
3
|
+
|
|
4
|
+
import GasTokenJson from '../artifacts/GasToken.json' assert { type: 'json' };
|
|
5
|
+
|
|
6
|
+
export const GasTokenArtifact = loadContractArtifact(GasTokenJson as NoirCompiledContract);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
|
|
2
|
+
import { GasTokenArtifact } from './artifact.js';
|
|
3
|
+
|
|
4
|
+
/** Returns the canonical deployment of the gas token. */
|
|
5
|
+
export function getCanonicalGasToken(): ProtocolContract {
|
|
6
|
+
return getCanonicalProtocolContract(GasTokenArtifact, 1);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const GasTokenAddress = getCanonicalGasToken().address;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AztecAddress } from '@aztec/circuits.js';
|
|
1
|
+
import { AztecAddress, DEPLOYER_CONTRACT_ADDRESS } from '@aztec/circuits.js';
|
|
2
2
|
|
|
3
3
|
import { ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
|
|
4
4
|
import { ContractInstanceDeployerArtifact } from './artifact.js';
|
|
@@ -8,6 +8,4 @@ export function getCanonicalInstanceDeployer(): ProtocolContract {
|
|
|
8
8
|
return getCanonicalProtocolContract(ContractInstanceDeployerArtifact, 1);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export const InstanceDeployerAddress = AztecAddress.
|
|
12
|
-
'0x1799c61aa10430bf6fec46679c4cb76c3ed12cd8b6e73ed7389d5ae296ad1b97',
|
|
13
|
-
);
|
|
11
|
+
export const InstanceDeployerAddress = AztecAddress.fromBigInt(DEPLOYER_CONTRACT_ADDRESS);
|