Skip to content

Commit f2c3a55

Browse files
add ui
1 parent 7efdbad commit f2c3a55

File tree

19 files changed

+1147
-344
lines changed

19 files changed

+1147
-344
lines changed

hardhat/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
22
.env
3-
3+
./env
44
# Hardhat files
55
/cache
66
/artifacts

hardhat/contracts/Web3DevToken.sol

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
pragma solidity >0.8.0 <0.9.0;
44

55
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
6+
import "@openzeppelin/contracts/access/Ownable.sol";
67

78
contract Web3DevToken is ERC20 {
89
uint256 inviteAmount = 1 * 10 ** decimals();
910
uint256 constant MAX_INVITES = 3;
11+
// address owner;
1012

1113
mapping(address => uint256) private inviteCount;
1214

@@ -31,4 +33,10 @@ contract Web3DevToken is ERC20 {
3133
function transfer(address, uint256) public pure override returns (bool) {
3234
revert("Transfers are disabled");
3335
}
36+
37+
function unvite(address addr) public {
38+
// require(msg.sender == owner, "Only owner can uninvite");
39+
// _burnFrom(addr, inviteAmount);
40+
}
41+
3442
}

hardhat/hardhat.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { HardhatUserConfig } from "hardhat/config";
2-
import "@nomicfoundation/hardhat-toolbox-viem";
1+
import type { HardhatUserConfig } from 'hardhat/config'
2+
import '@nomicfoundation/hardhat-toolbox-viem'
33

44
const config: HardhatUserConfig = {
5-
solidity: "0.8.27",
6-
};
5+
solidity: '0.8.27',
6+
}
77

8-
export default config;
8+
export default config

0 commit comments

Comments
 (0)