Skip to content

Commit 32de49f

Browse files
committed
done majo changes
1 parent 80b2bf7 commit 32de49f

File tree

21 files changed

+48
-165
lines changed

21 files changed

+48
-165
lines changed

packages/hardhat/contracts/AvaxGods.sol renamed to packages/hardhat/contracts/ScaffoldGods.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol';
66
import '@openzeppelin/contracts/access/Ownable.sol';
77
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';
88

9-
/// @title AVAXGods
10-
/// @notice This contract handles the token management and battle logic for the AVAXGods game
9+
/// @title ScaffoldGods
10+
/// @notice This contract handles the token management and battle logic for the game ScaffoldGods
1111
/// @notice Version 1.0.0
1212
/// @author Kcpele
1313
/// @author Koko codes
1414

1515

16-
contract AVAXGods is ERC1155, Ownable, ERC1155Supply {
16+
contract ScaffoldGods is ERC1155, Ownable, ERC1155Supply {
1717
string public baseURI; // baseURI where token metadata is stored
1818
uint256 public totalSupply; // Total number of tokens minted
1919
uint256 public constant DEVIL = 0;

packages/hardhat/deploy/01_deploy_contract.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = async ({ getNamedAccounts, deployments, getChainId }) => {
1919
const { deployer } = await getNamedAccounts();
2020
const chainId = await getChainId();
2121

22-
await deploy("AVAXGods", {
22+
await deploy("ScaffoldGods", {
2323
// Learn more about args here: https://www.npmjs.com/package/hardhat-deploy#deploymentsdeploy
2424
from: deployer,
2525
args: [_metadataUri],
@@ -28,17 +28,14 @@ module.exports = async ({ getNamedAccounts, deployments, getChainId }) => {
2828
});
2929

3030
// Getting a previously deployed contract
31-
const AVAXGods = await ethers.getContract("AVAXGods", deployer);
32-
/* await AVAXGods.setPurpose("Hello");
33-
34-
// To take ownership of AVAXGods using the ownable library uncomment next line and add the
35-
// address you want to be the owner.
31+
const scaffoldGods = await ethers.getContract("ScaffoldGods", deployer);
32+
/*
3633
37-
await AVAXGods.transferOwnership(
34+
await scaffoldGods.transferOwnership(
3835
"ADDRESS_HERE"
3936
);
4037
41-
//const AVAXGods = await ethers.getContractAt('AVAXGods', "0xaAC799eC2d00C013f1F11c37E654e59B0429DF6A") //<-- if you want to instantiate a version of a contract at a specific address!
38+
//const ScaffoldGods = await ethers.getContractAt('ScaffoldGods', "0xaAC799eC2d00C013f1F11c37E654e59B0429DF6A") //<-- if you want to instantiate a version of a contract at a specific address!
4239
*/
4340

4441
/*
@@ -52,15 +49,15 @@ module.exports = async ({ getNamedAccounts, deployments, getChainId }) => {
5249

5350
/*
5451
//If you want to send some ETH to a contract on deploy (make your constructor payable!)
55-
const AVAXGods = await deploy("AVAXGods", [], {
52+
const ScaffoldGods = await deploy("ScaffoldGods", [], {
5653
value: ethers.utils.parseEther("0.05")
5754
});
5855
*/
5956

6057
/*
6158
//If you want to link a library into your contract:
6259
// reference: https://github.com/austintgriffith/scaffold-eth/blob/using-libraries-example/packages/hardhat/scripts/deploy.js#L19
63-
const AVAXGods = await deploy("AVAXGods", [], {}, {
60+
const ScaffoldGods = await deploy("ScaffoldGods", [], {}, {
6461
LibraryName: **LibraryAddress**
6562
});
6663
*/
@@ -72,13 +69,13 @@ module.exports = async ({ getNamedAccounts, deployments, getChainId }) => {
7269
// try {
7370
// if (chainId !== localChainId) {
7471
// await run("verify:verify", {
75-
// address: AVAXGods.address,
76-
// contract: "contracts/AVAXGods.sol:AVAXGods",
72+
// address: ScaffoldGods.address,
73+
// contract: "contracts/ScaffoldGods.sol:ScaffoldGods",
7774
// constructorArguments: [],
7875
// });
7976
// }
8077
// } catch (error) {
8178
// console.error(error);
8279
// }
8380
};
84-
module.exports.tags = ["AVAXGods"];
81+
module.exports.tags = ["ScaffoldGods"];

packages/react-app/src/components/avaxgods/ActionButton.jsx renamed to packages/react-app/src/components/scaffoldGods/ActionButton.jsx

File renamed without changes.

packages/react-app/src/components/avaxgods/Alert.jsx renamed to packages/react-app/src/components/scaffoldGods/Alert.jsx

File renamed without changes.
File renamed without changes.

packages/react-app/src/components/avaxgods/CustomButton.jsx renamed to packages/react-app/src/components/scaffoldGods/CustomButton.jsx

File renamed without changes.

packages/react-app/src/components/avaxgods/CustomInput.jsx renamed to packages/react-app/src/components/scaffoldGods/CustomInput.jsx

File renamed without changes.

packages/react-app/src/components/avaxgods/GameInfo.jsx renamed to packages/react-app/src/components/scaffoldGods/GameInfo.jsx

File renamed without changes.

packages/react-app/src/components/avaxgods/GameLoad.jsx renamed to packages/react-app/src/components/scaffoldGods/GameLoad.jsx

File renamed without changes.

packages/react-app/src/components/avaxgods/Navbar.jsx renamed to packages/react-app/src/components/scaffoldGods/Navbar.jsx

File renamed without changes.

0 commit comments

Comments
 (0)