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 847e03d
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 209 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.

0 comments on commit 847e03d

Please sign in to comment.