Skip to content

Commit

Permalink
MOD: gptminer v2 naming
Browse files Browse the repository at this point in the history
  • Loading branch information
cctv2206 committed Jan 30, 2024
1 parent df0678e commit dc80c6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contracts/gptmining/GPTMinerV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";
import "./GPTPower.sol";

contract GPTMiner is Ownable {
contract GPTMinerV2 is Ownable {
uint256 public constant DURATION = 7 days;
uint256 public constant BOOST_AMOUNT_CAP = 1 ether;
uint256 public constant BOOST_UNIT = 0.001 ether;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clear-cache": "rm -rf artifacts/ cache/ typechain/",
"deploy-sepolia": "npx hardhat run --network sepolia ./scripts/gptminer/deploy_gptminer.ts",
"deploy-aime": "npx hardhat run --network optimism ./scripts/aime/deploy_aime.ts",
"verify-sepolia": "npx hardhat verify --contract contracts/gptmining/GptMiner.sol:GPTMiner --network sepolia",
"verify-sepolia": "npx hardhat verify --contract contracts/gptmining/GPTMinerV2.sol:GPTMinerV2 --network sepolia",
"verify-aime": "npx hardhat verify --contract contracts/aime/AIMeV4.sol:AIMePowersV4 --network optimism"
},
"author": "",
Expand Down
8 changes: 4 additions & 4 deletions scripts/gptminer/deploy_gptminer.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ethers } from "hardhat";
import { GPTMiner } from "../../typechain";
import { GPTMinerV2 } from "../../typechain";

async function deployAIMeForTest(): Promise<GPTMiner> {
const contractFactory = await ethers.getContractFactory("GPTMiner");
async function deployAIMeForTest(): Promise<GPTMinerV2> {
const contractFactory = await ethers.getContractFactory("GPTMinerV2");
const instance = await contractFactory.deploy();
await instance.deployed();

console.log("GPTMiner contract deployed to", instance.address);
console.log("GPTMinerV2 contract deployed to", instance.address);

return instance;
}
Expand Down

0 comments on commit dc80c6a

Please sign in to comment.