Skip to content

Commit

Permalink
complete challenge theredguild#1 - unstoppable
Browse files Browse the repository at this point in the history
  • Loading branch information
palmcivet7 committed Mar 1, 2024
1 parent 8c59948 commit d654c6c
Show file tree
Hide file tree
Showing 69 changed files with 122 additions and 3,973 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ cache
.vscode
artifacts
cache

.env
.original
12 changes: 12 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
[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
[submodule "lib/openzeppelin-contracts-upgradeable"]
path = lib/openzeppelin-contracts-upgradeable
url = https://github.com/Openzeppelin/openzeppelin-contracts-upgradeable
[submodule "lib/solmate"]
path = lib/solmate
url = https://github.com/transmissions11/solmate
[submodule "lib/solady"]
path = lib/solady
url = https://github.com/Vectorized/solady
46 changes: 0 additions & 46 deletions CHANGELOG.md

This file was deleted.

22 changes: 0 additions & 22 deletions LICENSE

This file was deleted.

67 changes: 3 additions & 64 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,5 @@
## Foundry
# Damn Vulnerable Defi Foundry fork

**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**
This repo is a fork of the [damn vulnerable defi](https://github.com/tinchoabbate/damn-vulnerable-defi/tree/v3.0.0) challenges, that I am completing in foundry.

Foundry consists of:

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

## Documentation

https://book.getfoundry.sh/

## Usage

### Build

```shell
$ forge build
```

### Test

```shell
$ forge test
```

### Format

```shell
$ forge fmt
```

### Gas Snapshots

```shell
$ forge snapshot
```

### Anvil

```shell
$ anvil
```

### Deploy

```shell
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
```

### Cast

```shell
$ cast <subcommand>
```

### Help

```shell
$ forge --help
$ anvil --help
$ cast --help
```
See the test/ folder for my solutions.
Loading

0 comments on commit d654c6c

Please sign in to comment.