Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
jordipainan committed Oct 3, 2024
1 parent b7eaead commit 87351c7
Show file tree
Hide file tree
Showing 20 changed files with 7,890 additions and 57 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Compiler files
cache/
cache_hardhat/
out/

# Ignores development broadcast logs
Expand All @@ -12,3 +13,9 @@ docs/

# Dotenv file
.env

# log
anvil_output.log

# node
node_modules/
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
## Foundry

### Install

```bash
curl -L https://foundry.paradigm.xyz | bash
```

### Setup

`npm i`

**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**

Foundry consists of:
Expand Down
5 changes: 5 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# DEPLOYMENT AND UPGRADES PRIVATE KEY
PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

# NETWORKS
LOCALHOST_RPC_URL=http://127.0.0.1:8545
11 changes: 11 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,16 @@
src = "src"
out = "out"
libs = ["lib"]
ffi = true
ast = true
build_info = true
extra_output = ["storageLayout"]
remappings = [
"@openzeppelin/contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/"
]

[rpc_endpoints]
localhost = "${LOCALHOST_RPC_URL}"

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
9 changes: 9 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-foundry"

const config: HardhatUserConfig = {
solidity: "0.8.24",
};

export default config;
Loading

0 comments on commit 87351c7

Please sign in to comment.