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

chore: updating script for mech agent verification #46

Merged
merged 3 commits into from
Oct 24, 2024
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
2 changes: 2 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ e8bc0c8e0ef330ba14e6006a2ced4a5b86366ca9:scripts/deployment/globals_gnosis_mainn
825ccd92cc980fa042c9e2e51145d269f3af2d50:scripts/deployment/globals_gnosis_mainnet.json:generic-api-key:2
9d842115357c585bc68f868b00aef15d11502f5f:scripts/deployment/globals_gnosis_mainnet.json:generic-api-key:1
9d842115357c585bc68f868b00aef15d11502f5f:scripts/deployment/globals_gnosis_mainnet.json:generic-api-key:2
64134200ff4bf323d9fe13a9e7342bddb2f75fc1:scripts/deployment/globals_gnosis_mainnet.json:generic-api-key:1
64134200ff4bf323d9fe13a9e7342bddb2f75fc1:scripts/deployment/globals_gnosis_mainnet.json:generic-api-key:2
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ async function main() {
}

// Contract verification
if (parsedData.contractVerification) {
const execSync = require("child_process").execSync;
execSync("npx hardhat verify --constructor-args scripts/deployment/verify_04_agent_mech.js --network " + providerName + " " + agentMechAddress, { encoding: "utf-8" });
}
const execSync = require("child_process").execSync;
execSync("npx hardhat verify --constructor-args scripts/deployment/verify_00_agent_mech.js --network " + providerName + " " + agentMechAddress, { encoding: "utf-8" });
}

main()
Expand Down
2 changes: 1 addition & 1 deletion scripts/deployment/globals_gnosis_mainnet.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"contractVerification":true,"useLedger":true,"derivationPath":"m/44'/60'/2'/0/0","providerName":"gnosis","networkURL":"https://rpc.gnosischain.com","gasPriceInGwei":"5","agentType":".","baseURI":"https://gateway.autonolas.tech/ipfs/","agentRegistryName":"AI Agent Registry","agentRegistrySymbol":"AI-AGENT-V1","agentRegistryAddress":"0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA","agentFactoryAddress":"0x6D8CbEbCAD7397c63347D44448147Db05E7d17B0","agentMechAddress":"0x77af31de935740567cf4ff1986d04b2c964a786a","agentId":"6","price":"10000000000000000","agentHash":"0x59ec5386a145869a4c8d14a3df188b32da54f4ae70bf9002df00672dbf777ffc","agentFactorySubscriptionAddress":"0x910Ca843Cad6C050Faf3f84387879b2928D40370","agentMechSubscriptionAddress":"0x327E26bDF1CfEa50BFAe35643B23D5268E41F7F9","agentIdSubscription":"3","minCreditsPerRequest":"1","subscriptionNFTAddress":"0x80A9b55F8604acC26dF2Ac6e07F9dC5B0eAa05Ce","subscriptionTokenId":"0x0ea01d5de3b34e3792db825f2a5f5595c393c68b19fd5efdacd00fcc63a53483","agentHashSubscription":"0x59ec5386a145869a4c8d14a3df188b32da54f4ae70bf9002df00672dbf777ffc","karmaAddress":"0x4039B809E0C0Ad04F6Fc880193366b251dDf4B40","karmaProxyAddress":"0x4E3e48bA826b15214FDe72a50BFd17aB286B584E","stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700","minResponseTimeout":"60","maxResponseTimeout":"300","mechMarketplaceAddress":"0x4554fE75c1f5576c1d7F765B2A036c199Adae329"}
{"contractVerification":true,"useLedger":true,"derivationPath":"m/44'/60'/2'/0/0","providerName":"gnosis","networkURL":"https://rpc.gnosischain.com","gasPriceInGwei":"5","agentType":".","baseURI":"https://gateway.autonolas.tech/ipfs/","agentRegistryName":"AI Agent Registry","agentRegistrySymbol":"AI-AGENT-V1","agentRegistryAddress":"0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA","agentFactoryAddress":"0x6D8CbEbCAD7397c63347D44448147Db05E7d17B0","agentMechAddress":"0x77af31de935740567cf4ff1986d04b2c964a786a","agentId":"9","price":"10000000000000000","agentHash":"0x59ec5386a145869a4c8d14a3df188b32da54f4ae70bf9002df00672dbf777ffc","agentFactorySubscriptionAddress":"0x910Ca843Cad6C050Faf3f84387879b2928D40370","agentMechSubscriptionAddress":"0x327E26bDF1CfEa50BFAe35643B23D5268E41F7F9","agentIdSubscription":"3","minCreditsPerRequest":"1","subscriptionNFTAddress":"0x80A9b55F8604acC26dF2Ac6e07F9dC5B0eAa05Ce","subscriptionTokenId":"0x0ea01d5de3b34e3792db825f2a5f5595c393c68b19fd5efdacd00fcc63a53483","agentHashSubscription":"0x59ec5386a145869a4c8d14a3df188b32da54f4ae70bf9002df00672dbf777ffc","karmaAddress":"0x4039B809E0C0Ad04F6Fc880193366b251dDf4B40","karmaProxyAddress":"0x4E3e48bA826b15214FDe72a50BFd17aB286B584E","stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700","minResponseTimeout":"60","maxResponseTimeout":"300","mechMarketplaceAddress":"0x4554fE75c1f5576c1d7F765B2A036c199Adae329"}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { ethers } = require("hardhat");

Check warning on line 1 in scripts/deployment/verify_00_agent_mech.js

View workflow job for this annotation

GitHub Actions / build

'ethers' is assigned a value but never used
const fs = require("fs");
const globalsFile = "globals.json";
const dataFromJSON = fs.readFileSync(globalsFile, "utf8");
Expand All @@ -11,12 +11,14 @@
parsedData.agentIdSubscription,
parsedData.minCreditsPerRequest,
parsedData.subscriptionNFTAddress,
parsedData.subscriptionTokenId
parsedData.subscriptionTokenId,
parsedData.mechMarketplaceAddress
];
} else {
module.exports = [
parsedData.agentRegistryAddress,
parsedData.agentId,
parsedData.price
parsedData.price,
parsedData.mechMarketplaceAddress
];
}
Loading