Skip to content

Commit cc962f5

Browse files
committed
weltoken base
Signed-off-by: stadolf <stadolf@gmail.com>
1 parent eca5d54 commit cc962f5

File tree

2 files changed

+48
-57
lines changed

2 files changed

+48
-57
lines changed

README.md

Lines changed: 7 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,16 @@
1-
## Foundry
1+
# Welshare token
22

3-
**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**
3+
## Contract Addresses
44

5-
Foundry consists of:
5+
### Mainnet
66

7-
- **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools).
8-
- **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
9-
- **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network.
10-
- **Chisel**: Fast, utilitarian, and verbose solidity REPL.
7+
Welshare Token
118

12-
## Documentation
9+
Treasury
1310

14-
https://book.getfoundry.sh/
1511

16-
## Usage
12+
### Sepolia
1713

18-
### Build
14+
Welshare Token
1915

20-
```shell
21-
$ forge build
22-
```
2316

24-
### Test
25-
26-
```shell
27-
$ forge test
28-
```
29-
30-
### Format
31-
32-
```shell
33-
$ forge fmt
34-
```
35-
36-
### Gas Snapshots
37-
38-
```shell
39-
$ forge snapshot
40-
```
41-
42-
### Anvil
43-
44-
```shell
45-
$ anvil
46-
```
47-
48-
### Deploy
49-
50-
```shell
51-
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
52-
```
53-
54-
### Cast
55-
56-
```shell
57-
$ cast <subcommand>
58-
```
59-
60-
### Help
61-
62-
```shell
63-
$ forge --help
64-
$ anvil --help
65-
$ cast --help
66-
```

src/WelToken.sol

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// SPDX-License-Identifier: MIT
2+
// Compatible with OpenZeppelin Contracts ^5.0.0
3+
pragma solidity ^0.8.20;
4+
5+
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
6+
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
7+
8+
/*
9+
--- +=+ ===
10+
=--======-- ========+== =====----
11+
--=======================++++ =======----
12+
--=====----===============+++++ =========---
13+
-====- ========= =++++++ ==========-
14+
-----= -======= +++++++ ++========-
15+
------- -======= +++++++ +++======
16+
------- ======== +++++++ ++++===+
17+
------- =======+ =+++++++ ++++++==
18+
------- ======== ++++++++++++++++++
19+
------- ======= +++++++++++++++
20+
------- ======= *++++++++++++
21+
------- ======= ++++++++++
22+
------- =====+= ++++++++
23+
------- -====+++ +++++++
24+
-------- =---===+++++ ++++++++
25+
--------------==++++++++++++++
26+
-------------+=++++++++++++
27+
-------- ++++++++
28+
*/
29+
30+
31+
/// @custom:security-contact stefan@welshare.health
32+
contract WelToken is ERC20, ERC20Permit {
33+
constructor() ERC20("WelToken", "WEL") ERC20Permit("WelToken") {
34+
_mint(msg.sender, 1000000 * 10 ** decimals());
35+
}
36+
}
37+
38+
39+
40+
41+

0 commit comments

Comments
 (0)