Skip to content

Commit

Permalink
feat: add basic contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
CanvasL committed Jul 19, 2024
1 parent 3e7ded5 commit 2b32097
Show file tree
Hide file tree
Showing 14 changed files with 525 additions and 64 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
BASE_RPC_URL=https://base.rpc.subquery.network/public
BASE_SEPOLIA_RPC_URL=https://base-sepolia-rpc.publicnode.com

PRIVATE_KEY=
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cache/
out/

# Ignores development broadcast logs
!/broadcast
/broadcast
/broadcast/*/31337/
/broadcast/**/dry-run/

Expand All @@ -12,3 +12,5 @@ docs/

# Dotenv file
.env

dependencies/
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

12 changes: 10 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
[profile.default]
src = "src"
out = "out"
libs = ["lib"]
libs = ["dependencies"]
auto_detect_remappings = true

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
[dependencies]
forge-std = { version = "1.9.1" }
"@openzeppelin-contracts" = { version = "5.0.2" }
"@openzeppelin-contracts-upgradeable" = { version = "5.0.2" }

[rpc_endpoints]
base = "${BASE_RPC_URL}"
base_sepolia = "${BASE_SEPOLIA_RPC_URL}"
1 change: 0 additions & 1 deletion lib/forge-std
Submodule forge-std deleted from 07263d
3 changes: 3 additions & 0 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@openzeppelin/contracts=dependencies/@openzeppelin-contracts-5.0.2
forge-std=dependencies/forge-std-1.9.1
@openzeppelin/contracts-upgradeable=dependencies/@openzeppelin-contracts-upgradeable-5.0.2
19 changes: 0 additions & 19 deletions script/Counter.s.sol

This file was deleted.

18 changes: 18 additions & 0 deletions soldeer.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

[[dependencies]]
name = "forge-std"
version = "1.9.1"
source = "https://soldeer-revisions.s3.amazonaws.com/forge-std/v1_9_1_03-07-2024_14:44:59_forge-std-v1.9.1.zip"
checksum = "110b35ad3604d91a919c521c71206c18cd07b29c750bd90b5cbbaf37288c9636"

[[dependencies]]
name = "@openzeppelin-contracts"
version = "5.0.2"
source = "https://soldeer-revisions.s3.amazonaws.com/@openzeppelin-contracts/5_0_2_14-03-2024_06:11:59_contracts.zip"
checksum = "8bc4f0acc7c187771b878d46f7de4bfad1acad2eb5d096d9d05d34035853f5c3"

[[dependencies]]
name = "@openzeppelin-contracts-upgradeable"
version = "5.0.2"
source = "https://soldeer-revisions.s3.amazonaws.com/@openzeppelin-contracts-upgradeable/5_0_2_14-03-2024_06:12:07_contracts-upgradeable.zip"
checksum = "fb3f8db8541fc01636f91b0e7d9dd6f450f1bf7e2b4a17e96caf6e779ace8f5b"
14 changes: 0 additions & 14 deletions src/Counter.sol

This file was deleted.

Loading

0 comments on commit 2b32097

Please sign in to comment.