@aztec/protocol-contracts 0.32.0 → 0.33.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 -1
- package/dest/class-registerer/index.d.ts +2 -2
- package/dest/class-registerer/index.d.ts.map +1 -1
- package/dest/class-registerer/index.js +1 -1
- package/dest/gas-token/index.d.ts +2 -2
- package/dest/gas-token/index.d.ts.map +1 -1
- package/dest/gas-token/index.js +1 -1
- package/dest/instance-deployer/index.d.ts +1 -1
- package/dest/instance-deployer/index.d.ts.map +1 -1
- package/dest/instance-deployer/index.js +1 -1
- package/dest/multi-call-entrypoint/index.d.ts +2 -2
- package/dest/multi-call-entrypoint/index.d.ts.map +1 -1
- package/dest/multi-call-entrypoint/index.js +1 -1
- package/dest/protocol_contract.d.ts +3 -3
- package/dest/protocol_contract.d.ts.map +1 -1
- package/package.json +14 -8
- 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 -1
- package/src/class-registerer/artifact.ts +1 -1
- package/src/class-registerer/index.ts +2 -2
- package/src/gas-token/artifact.ts +1 -1
- package/src/gas-token/index.ts +2 -2
- package/src/instance-deployer/artifact.ts +1 -1
- package/src/instance-deployer/index.ts +1 -1
- package/src/multi-call-entrypoint/artifact.ts +1 -1
- package/src/multi-call-entrypoint/index.ts +2 -2
- package/src/protocol_contract.ts +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { loadContractArtifact } from '@aztec/types/abi';
|
|
2
|
-
import { NoirCompiledContract } from '@aztec/types/noir';
|
|
2
|
+
import { type NoirCompiledContract } from '@aztec/types/noir';
|
|
3
3
|
|
|
4
4
|
import ContractClassRegistererJson from '../artifacts/ContractClassRegisterer.json' assert { type: 'json' };
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AztecAddress } from '@aztec/circuits.js';
|
|
1
|
+
import { type AztecAddress } from '@aztec/circuits.js';
|
|
2
2
|
|
|
3
|
-
import { ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
|
|
3
|
+
import { type ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
|
|
4
4
|
import { ContractClassRegistererArtifact } from './artifact.js';
|
|
5
5
|
|
|
6
6
|
/** Returns the canonical deployment of the class registerer contract. */
|
package/src/gas-token/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AztecAddress, EthAddress, Point } from '@aztec/circuits.js';
|
|
1
|
+
import { type AztecAddress, type EthAddress, Point } from '@aztec/circuits.js';
|
|
2
2
|
|
|
3
|
-
import { ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
|
|
3
|
+
import { type ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
|
|
4
4
|
import { GasTokenArtifact } from './artifact.js';
|
|
5
5
|
|
|
6
6
|
/** Returns the canonical deployment of the gas token. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { loadContractArtifact } from '@aztec/types/abi';
|
|
2
|
-
import { NoirCompiledContract } from '@aztec/types/noir';
|
|
2
|
+
import { type NoirCompiledContract } from '@aztec/types/noir';
|
|
3
3
|
|
|
4
4
|
import ContractInstanceDeployerJson from '../artifacts/ContractInstanceDeployer.json' assert { type: 'json' };
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AztecAddress, DEPLOYER_CONTRACT_ADDRESS } from '@aztec/circuits.js';
|
|
2
2
|
|
|
3
|
-
import { ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
|
|
3
|
+
import { type ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
|
|
4
4
|
import { ContractInstanceDeployerArtifact } from './artifact.js';
|
|
5
5
|
|
|
6
6
|
/** Returns the canonical deployment of the instance deployer contract. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { loadContractArtifact } from '@aztec/types/abi';
|
|
2
|
-
import { NoirCompiledContract } from '@aztec/types/noir';
|
|
2
|
+
import { type NoirCompiledContract } from '@aztec/types/noir';
|
|
3
3
|
|
|
4
4
|
import MultiCallEntrypoint from '../artifacts/MultiCallEntrypoint.json' assert { type: 'json' };
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AztecAddress, EthAddress, Point } from '@aztec/circuits.js';
|
|
1
|
+
import { type AztecAddress, EthAddress, Point } from '@aztec/circuits.js';
|
|
2
2
|
|
|
3
|
-
import { ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
|
|
3
|
+
import { type ProtocolContract, getCanonicalProtocolContract } from '../protocol_contract.js';
|
|
4
4
|
import { MultiCallEntrypointArtifact } from './artifact.js';
|
|
5
5
|
|
|
6
6
|
export function getCanonicalMultiCallEntrypointContract(): ProtocolContract {
|
package/src/protocol_contract.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AztecAddress,
|
|
2
|
+
type AztecAddress,
|
|
3
3
|
EthAddress,
|
|
4
4
|
getContractClassFromArtifact,
|
|
5
5
|
getContractInstanceFromDeployParams,
|
|
6
6
|
} from '@aztec/circuits.js';
|
|
7
|
-
import { ContractArtifact } from '@aztec/foundation/abi';
|
|
7
|
+
import { type ContractArtifact } from '@aztec/foundation/abi';
|
|
8
8
|
import { Fr, Point } from '@aztec/foundation/fields';
|
|
9
|
-
import { ContractClassWithId, ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
9
|
+
import { type ContractClassWithId, type ContractInstanceWithAddress } from '@aztec/types/contracts';
|
|
10
10
|
|
|
11
11
|
/** Represents a canonical contract in the protocol. */
|
|
12
12
|
export interface ProtocolContract {
|