diff --git a/package-lock.json b/package-lock.json index 1d0910508..84e0e7312 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "origintrail_node", - "version": "8.0.0-sigma.10", + "version": "8.0.0-sigma.12", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "origintrail_node", - "version": "8.0.0-sigma.10", + "version": "8.0.0-sigma.12", "license": "ISC", "dependencies": { "@comunica/query-sparql": "^2.4.3", @@ -26,7 +26,7 @@ "axios": "^1.6.0", "cors": "^2.8.5", "deep-extend": "^0.6.0", - "dkg-evm-module": "^8.0.0-sigma.0", + "dkg-evm-module": "^8.0.0-sigma.2", "dotenv": "^16.0.1", "ethers": "^5.7.2", "express": "^4.18.1", @@ -9334,9 +9334,9 @@ } }, "node_modules/dkg-evm-module": { - "version": "8.0.0-sigma.0", - "resolved": "https://registry.npmjs.org/dkg-evm-module/-/dkg-evm-module-8.0.0-sigma.0.tgz", - "integrity": "sha512-Jl/PnuOzac4zyxulMo6ao4+HcG6bAYAyfUQKKqwy3YBVecWgb3eBYa6uowsneqTh8huSwMUCmFp+pu/vkPXO4w==", + "version": "8.0.0-sigma.2", + "resolved": "https://registry.npmjs.org/dkg-evm-module/-/dkg-evm-module-8.0.0-sigma.2.tgz", + "integrity": "sha512-o19xDVGMSuvJxrWGmyW3MPQzTspnhmgmJBVLBdteCL5v6eP6FkjJsVg90fEXbKeljP58EH683FndT7VCHCQ+EA==", "dependencies": { "@openzeppelin/contracts": "^5.1.0", "@polkadot/api": "^15.0.2", @@ -31753,9 +31753,9 @@ "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==" }, "dkg-evm-module": { - "version": "8.0.0-sigma.0", - "resolved": "https://registry.npmjs.org/dkg-evm-module/-/dkg-evm-module-8.0.0-sigma.0.tgz", - "integrity": "sha512-Jl/PnuOzac4zyxulMo6ao4+HcG6bAYAyfUQKKqwy3YBVecWgb3eBYa6uowsneqTh8huSwMUCmFp+pu/vkPXO4w==", + "version": "8.0.0-sigma.2", + "resolved": "https://registry.npmjs.org/dkg-evm-module/-/dkg-evm-module-8.0.0-sigma.2.tgz", + "integrity": "sha512-o19xDVGMSuvJxrWGmyW3MPQzTspnhmgmJBVLBdteCL5v6eP6FkjJsVg90fEXbKeljP58EH683FndT7VCHCQ+EA==", "requires": { "@openzeppelin/contracts": "^5.1.0", "@polkadot/api": "^15.0.2", diff --git a/package.json b/package.json index 0ef2da38a..9a8c819b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "origintrail_node", - "version": "8.0.0-sigma.11", + "version": "8.0.0-sigma.12", "description": "OTNode V8", "main": "index.js", "type": "module", @@ -81,7 +81,7 @@ "axios": "^1.6.0", "cors": "^2.8.5", "deep-extend": "^0.6.0", - "dkg-evm-module": "^8.0.0-sigma.0", + "dkg-evm-module": "^8.0.0-sigma.2", "dotenv": "^16.0.1", "ethers": "^5.7.2", "express": "^4.18.1", diff --git a/src/constants/constants.js b/src/constants/constants.js index 0e6fa9f41..0ae75657b 100644 --- a/src/constants/constants.js +++ b/src/constants/constants.js @@ -274,7 +274,7 @@ export const ABIs = { ShardingTableStorage: require('dkg-evm-module/abi/ShardingTableStorage.json'), ParanetsRegistry: require('dkg-evm-module/abi/ParanetsRegistry.json'), ParanetKnowledgeAssetsRegistry: require('dkg-evm-module/abi/ParanetKnowledgeAssetsRegistry.json'), - Ask: require('dkg-evm-module/abi/Ask.json'), + AskStorage: require('dkg-evm-module/abi/AskStorage.json'), Chronos: require('dkg-evm-module/abi/Chronos.json'), }; diff --git a/src/modules/blockchain/implementation/web3-service.js b/src/modules/blockchain/implementation/web3-service.js index 6f2f4cd1a..b45969757 100644 --- a/src/modules/blockchain/implementation/web3-service.js +++ b/src/modules/blockchain/implementation/web3-service.js @@ -1102,7 +1102,11 @@ class Web3Service { } async getStakeWeightedAverageAsk() { - return this.callContractFunction(this.contracts.Ask, 'getStakeWeightedAverageAsk', []); + return this.callContractFunction( + this.contracts.AskStorage, + 'getStakeWeightedAverageAsk', + [], + ); } async getTimeUntilNextEpoch() {