-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
509ba7f
commit 9099ae7
Showing
9 changed files
with
338 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Movable (sword for eg) NFT will not be in the ownership of the dungeon owner but dungeon contract only. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ contract DeployDungeonMOW is Script { | |
vm.stopBroadcast(); | ||
return dungeonMOW; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "../../lib/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol"; | ||
|
||
contract Nft1 is ERC721 { | ||
uint256 private _nextTokenId; | ||
|
||
constructor() ERC721("Nft1", "NFT1") {} | ||
|
||
function mint() public returns (uint256) { | ||
uint256 tokenId = _nextTokenId++; | ||
_safeMint(msg.sender, tokenId); | ||
return tokenId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "../../lib/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol"; | ||
|
||
contract Nft2 is ERC721 { | ||
uint256 private _nextTokenId; | ||
|
||
constructor() ERC721("Nft2", "NFT2") {} | ||
|
||
function mint() public returns (uint256) { | ||
uint256 tokenId = _nextTokenId++; | ||
_safeMint(msg.sender, tokenId); | ||
return tokenId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "../../lib/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol"; | ||
|
||
contract Potion is ERC721 { | ||
uint256 private _nextTokenId; | ||
|
||
constructor() ERC721("Potion", "PTN") {} | ||
|
||
function mint() public returns (uint256) { | ||
uint256 tokenId = _nextTokenId++; | ||
_safeMint(msg.sender, tokenId); | ||
return tokenId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "../../lib/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol"; | ||
|
||
contract Sword is ERC721 { | ||
uint256 private _nextTokenId; | ||
|
||
constructor() ERC721("Sword", "SWRD") {} | ||
|
||
function mint() public returns (uint256) { | ||
uint256 tokenId = _nextTokenId++; | ||
_safeMint(msg.sender, tokenId); | ||
return tokenId; | ||
} | ||
} |
Oops, something went wrong.