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
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.9; | |
import "./IQuestStaking.sol"; | |
import "./AdventurePermissions.sol"; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
abstract contract AdventureERC721 is ERC721, AdventurePermissions, IQuestStaking { | |
uint256 public constant MAX_UINT32 = type(uint32).max; |
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
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.9; | |
struct Quest { | |
bool isActive; | |
uint32 questId; | |
uint64 startTimestamp; | |
uint32 arrayIndex; | |
} |
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
/* | |
npm init -y | |
npm install @3rdweb/sdk ethers dotenv | |
npm install --save-dev typescript @types/node ts-node tslib | |
run: | |
node index.js | |
*/ | |
const { ethers } = require("ethers"); |