Skip to content

Commit

Permalink
erc20 contract ready next on
Browse files Browse the repository at this point in the history
  • Loading branch information
panditdhamdhere committed Sep 5, 2024
1 parent 8447a36 commit c630e10
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 57 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
19 changes: 19 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,24 @@
src = "src"
out = "out"
libs = ["lib"]
ffi = true
solc = "0.8.24"
fs_permissions = [{ access = "read-write", path = "./" }]
remappings = [
'murky/=lib/murky/',
'@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/',
'foundry-devops/=lib/foundry-devops',
'forge-std/=lib/forge-std/src/',
]

[fmt]
bracket_spacing = true
int_types = "long"
line_length = 120
multiline_func_header = "all"
number_underscore = "thousands"
quote_style = "double"
tab_width = 4
wrap_comments = true

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
1 change: 1 addition & 0 deletions lib/openzeppelin-contracts
Submodule openzeppelin-contracts added at dbb610
19 changes: 0 additions & 19 deletions script/Counter.s.sol

This file was deleted.

14 changes: 0 additions & 14 deletions src/Counter.sol

This file was deleted.

8 changes: 8 additions & 0 deletions src/MerkleAirdrop.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

contract MerkleAirdrop {
// some list of addresses

// Allow someone in the list to claim ERC 20 the token.
}
13 changes: 13 additions & 0 deletions src/MisalToken.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.25;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";

contract MisalToken is ERC20, Ownable {
constructor() ERC20("Misal", "MISAL") Ownable(msg.sender) {}

function mint(address to, uint256 amount) external onlyOwner {
_mint(to, amount);
}
}
24 changes: 0 additions & 24 deletions test/Counter.t.sol

This file was deleted.

0 comments on commit c630e10

Please sign in to comment.