Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove triples number getter #3526

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class ValidateAssertionMetadataCommand extends Command {
constructor(ctx) {
super(ctx);
this.operationIdService = ctx.operationIdService;
this.blockchainModuleManager = ctx.blockchainModuleManager;
}

async execute(command) {
Expand Down
6 changes: 0 additions & 6 deletions src/modules/blockchain/blockchain-module-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,6 @@ class BlockchainModuleManager extends BaseModuleManager {
]);
}

async getKnowledgeCollectionTriplesNumber(blockchain, knowledgeCollectionId) {
return this.callImplementationFunction(blockchain, 'getKnowledgeCollectionTriplesNumber', [
knowledgeCollectionId,
]);
}

async getKnowledgeCollectionChunksAmount(blockchain, knowledgeCollectionId) {
return this.callImplementationFunction(blockchain, 'getKnowledgeCollectionChunksAmount', [
knowledgeCollectionId,
Expand Down
13 changes: 0 additions & 13 deletions src/modules/blockchain/implementation/web3-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -951,19 +951,6 @@ class Web3Service {
return Number(knowledgeCollectionSize);
}

async getKnowledgeCollectionTriplesNumber(assetStorageContractAddress, knowledgeCollectionId) {
const assetStorageContractInstance =
this.assetStorageContracts[assetStorageContractAddress.toString().toLowerCase()];
if (!assetStorageContractInstance)
throw new Error('Unknown asset storage contract address');
const knowledgeCollectionTriplesNumber = await this.callContractFunction(
assetStorageContractInstance,
'getTriplesAmount',
[knowledgeCollectionId],
);
return Number(knowledgeCollectionTriplesNumber);
}

async getKnowledgeCollectionChunksAmount(assetStorageContractAddress, knowledgeCollectionId) {
const assetStorageContractInstance =
this.assetStorageContracts[assetStorageContractAddress.toString().toLowerCase()];
Expand Down
Loading