Skip to content

Commit 149b85f

Browse files
committed
fix: revert in get current price function
1 parent 77e7369 commit 149b85f

File tree

8 files changed

+2418
-4201
lines changed

8 files changed

+2418
-4201
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Number Runner Club
2+
3+
## Overview
4+
"Number Runner Club" is a unique project that combines the strategic depth of chess with Ethereum Name Service (ENS) domains. It features a specialized NFT collection that utilizes ENS addresses in a novel way.
5+
6+
## Features
7+
Price Checking and Domain Management: Users can easily check the prices and expiration dates of domains.
8+
Reward System: A mechanism for claiming rewards based on certain criteria.
9+
NFT Marketplace Interaction: Allows users to purchase unique NFTs associated with ENS domains.
10+
Chess Integration: The project integrates chess elements into the NFTs, enhancing the strategic and collectible aspects.
11+
12+
## Libraries & Dependencies
13+
* ABDKMath64x64.sol: For precision mathematical operations.
14+
* ENS.sol: Integrates Ethereum Name Service functionalities.
15+
* ERC721URIStorage.sol: Enhances ERC721 standard for efficient token URI storage.
16+
* OpenZeppelin Contracts: For secure, standard smart contract implementations.
17+
* Chainlink: For reliable external data feeds.
18+
19+
## User Interactions
20+
Minting: Users can mint NFTs representing various chess pieces.
21+
Marketplace Activities: Includes buying, selling, and trading NFTs.
22+
Rewards Management: Claiming and managing rewards based on user activities and NFT ownership.

contracts/NumberRunnerClub.sol

Lines changed: 155 additions & 233 deletions
Large diffs are not rendered by default.

contracts/NumberRunnerClubGoerli.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity ^0.8.0;
2+
pragma solidity ^0.8.18;
33

44
import "@ensdomains/ens-contracts/contracts/ethregistrar/BaseRegistrarImplementation.sol";
55
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
6-
import "@chainlink/contracts/src/v0.8/VRFV2WrapperConsumerBase.sol";
6+
import "@chainlink/contracts/src/v0.8/vrf/VRFV2WrapperConsumerBase.sol";
77
import "@openzeppelin/contracts/utils/Strings.sol";
88
import "@openzeppelin/contracts/access/Ownable.sol";
99
import "abdk-libraries-solidity/ABDKMath64x64.sol";
@@ -364,7 +364,7 @@ contract NumberRunnerClubGoerli is ERC721URIStorage, ReentrancyGuard {
364364
killFee = 0;
365365
}
366366
} else {
367-
// require(block.timestamp >= _unstakeTimestamps[tokensId[i]] + ONE_WEEK, "Cannot burn: One week waiting period is not over");
367+
require(block.timestamp >= _unstakeTimestamps[tokensId[i]] + ONE_WEEK, "Cannot burn: One week waiting period is not over");
368368
if (isForSale(tokensId[i])) {
369369
killFee = 100000000000000000 + (rewards * 10) / 100;
370370
} else {

migrations/1_deploy_contracts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const NumberRunnerClubGoerli = artifacts.require("NumberRunnerClubGoerli");
1+
const NumberRunnerClub = artifacts.require("NumberRunnerClub");
22
// const test = artifacts.require("ExponentialFunction");
33

44
module.exports = function (deployer) {
5-
deployer.deploy(NumberRunnerClubGoerli);
5+
deployer.deploy(NumberRunnerClub);
66
// deployer.deploy(test);
77
};

0 commit comments

Comments
 (0)