import { loadContractArtifact } from '@aztec/stdlib/abi';
import ContractInstanceRegistryJson from '../../artifacts/ContractInstanceRegistry.json' with {
    type: 'json'
};
import { makeProtocolContract } from '../make_protocol_contract.js';
export * from './contract_instance_published_event.js';
export * from './contract_instance_updated_event.js';
export const ContractInstanceRegistryArtifact = loadContractArtifact(ContractInstanceRegistryJson);
let protocolContract;
/** Returns the canonical deployment of the contract. */ export function getCanonicalInstanceRegistry() {
    if (!protocolContract) {
        protocolContract = makeProtocolContract('ContractInstanceRegistry', ContractInstanceRegistryArtifact);
    }
    return Promise.resolve(protocolContract);
}
