dkg.js 8.0.2 → 8.0.3

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/index.cjs CHANGED
@@ -586,15 +586,15 @@ class AssetOperationsManager {
586
586
 
587
587
  this.validationService.validateIncreaseAllowance(blockchain);
588
588
 
589
- const serviceAgreementV1Address = await this.blockchainService.getContractAddress(
590
- 'ServiceAgreementV1',
589
+ const knowledgeCollectionAddress = await this.blockchainService.getContractAddress(
590
+ 'KnowledgeCollection',
591
591
  blockchain,
592
592
  );
593
593
 
594
594
  const receipt = await this.blockchainService.executeContractFunction(
595
595
  'Token',
596
596
  'increaseAllowance',
597
- [serviceAgreementV1Address, tokenAmount],
597
+ [knowledgeCollectionAddress, tokenAmount],
598
598
  blockchain,
599
599
  );
600
600
 
@@ -655,15 +655,15 @@ class AssetOperationsManager {
655
655
  async getCurrentAllowance(options = {}) {
656
656
  const blockchain = this.inputService.getBlockchain(options);
657
657
 
658
- const serviceAgreementV1Address = await this.blockchainService.getContractAddress(
659
- 'ServiceAgreementV1',
658
+ const knowledgeCollectionAddress = await this.blockchainService.getContractAddress(
659
+ 'KnowledgeCollection',
660
660
  blockchain,
661
661
  );
662
662
 
663
663
  const allowance = await this.blockchainService.callContractFunction(
664
664
  'Token',
665
665
  'allowance',
666
- [blockchain.publicKey, serviceAgreementV1Address],
666
+ [blockchain.publicKey, knowledgeCollectionAddress],
667
667
  blockchain,
668
668
  );
669
669
 
@@ -168,15 +168,15 @@ export default class AssetOperationsManager {
168
168
 
169
169
  this.validationService.validateIncreaseAllowance(blockchain);
170
170
 
171
- const serviceAgreementV1Address = await this.blockchainService.getContractAddress(
172
- 'ServiceAgreementV1',
171
+ const knowledgeCollectionAddress = await this.blockchainService.getContractAddress(
172
+ 'KnowledgeCollection',
173
173
  blockchain,
174
174
  );
175
175
 
176
176
  const receipt = await this.blockchainService.executeContractFunction(
177
177
  'Token',
178
178
  'increaseAllowance',
179
- [serviceAgreementV1Address, tokenAmount],
179
+ [knowledgeCollectionAddress, tokenAmount],
180
180
  blockchain,
181
181
  );
182
182
 
@@ -237,15 +237,15 @@ export default class AssetOperationsManager {
237
237
  async getCurrentAllowance(options = {}) {
238
238
  const blockchain = this.inputService.getBlockchain(options);
239
239
 
240
- const serviceAgreementV1Address = await this.blockchainService.getContractAddress(
241
- 'ServiceAgreementV1',
240
+ const knowledgeCollectionAddress = await this.blockchainService.getContractAddress(
241
+ 'KnowledgeCollection',
242
242
  blockchain,
243
243
  );
244
244
 
245
245
  const allowance = await this.blockchainService.callContractFunction(
246
246
  'Token',
247
247
  'allowance',
248
- [blockchain.publicKey, serviceAgreementV1Address],
248
+ [blockchain.publicKey, knowledgeCollectionAddress],
249
249
  blockchain,
250
250
  );
251
251
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dkg.js",
3
- "version": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "description": "Javascript library for interaction with the OriginTrail Decentralized Knowledge Graph",
5
5
  "main": "index.js",
6
6
  "exports": {