Skip to content

Commit

Permalink
chore: Delete unused contract tree ts code
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Mar 14, 2024
1 parent f68ff28 commit 52bc3f7
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 210 deletions.
19 changes: 0 additions & 19 deletions yarn-project/archiver/src/archiver/archiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,25 +381,6 @@ export class Archiver implements ArchiveSource {
}
}

/**
* Stores extended contract data as classes and instances.
* Temporary solution until we source this data from the contract class registerer and instance deployer.
* @param contracts - The extended contract data to be stored.
* @param l2BlockNum - The L2 block number to which the contract data corresponds.
* TODO(palla/purge-old-contract-deploy): Delete this method
*/
async storeContractDataAsClassesAndInstances(contracts: ExtendedContractData[], l2BlockNum: number) {
const classesAndInstances = contracts.map(extendedContractDataToContractClassAndInstance);
await this.store.addContractClasses(
classesAndInstances.map(([c, _]) => c),
l2BlockNum,
);
await this.store.addContractInstances(
classesAndInstances.map(([_, i]) => i),
l2BlockNum,
);
}

/**
* Stops the archiver.
* @returns A promise signalling completion of the stop process.
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/circuits.js/src/contract/contract_class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ export function getContractClassFromArtifact(
* Returns zero for consistency with Noir.
*/
function getVerificationKeyHash(_verificationKeyInBase64: string) {
// return Fr.fromBuffer(hashVKStr(verificationKeyInBase64));
// return Fr.fromBuffer(hashVK(Buffer.from(verificationKeyInBase64, 'hex')));
return Fr.ZERO;
}
109 changes: 0 additions & 109 deletions yarn-project/circuits.js/src/contract/contract_tree/contract_tree.ts

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions yarn-project/circuits.js/src/contract/contract_tree/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion yarn-project/circuits.js/src/contract/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ export * from './contract_class_id.js';
export * from './contract_class_registered_event.js';
export * from './contract_instance.js';
export * from './contract_instance_deployed_event.js';
export * from './contract_tree/index.js';
export * from './private_function.js';
export * from './public_bytecode.js';

0 comments on commit 52bc3f7

Please sign in to comment.