• Stars
    star
    360
  • Rank 114,228 (Top 3 %)
  • Language
    Solidity
  • License
    MIT License
  • Created over 2 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Robust, Feature-Rich Solidity Template Repository for Foundry Projects with Scripting, Testing, and Utility Bash Scripts.

femplate β€’ tests license solidity

A Clean, Robust Template for Foundry Projects.

Usage

Building & Testing

Build the foundry project with forge build. Then you can run tests with forge test.

Deployment & Verification

Inside the utils/ directory are a few preconfigured scripts that can be used to deploy and verify contracts.

Scripts take inputs from the cli, using silent mode to hide any sensitive information.

NOTE: These scripts are required to be executable meaning they must be made executable by running chmod +x ./utils/*.

NOTE: these scripts will prompt you for the contract name and deployed addresses (when verifying). Also, they use the -i flag on forge to ask for your private key for deployment. This uses silent mode which keeps your private key from being printed to the console (and visible in logs).

I'm new, how do I get started?

We created a guide to get you started with: GETTING_STARTED.md.

Blueprint

lib
β”œβ”€ forge-std β€” https://github.com/foundry-rs/forge-std
β”œβ”€ solmate β€” https://github.com/transmissions11/solmate
scripts
β”œβ”€ Deploy.s.sol β€” Example Contract Deployment Script
src
β”œβ”€ Greeter β€” Example Contract
test
└─ Greeter.t β€” Example Contract Tests

Notable Mentions

Disclaimer

These smart contracts are being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the user interface or the smart contracts. They have not been audited and as such there can be no assurance they will work as intended, and users may experience delays, failures, errors, omissions, loss of transmitted information or loss of funds. The creators are not liable for any of the foregoing. Users should proceed with caution and use at their own risk.

See LICENSE for more details.

More Repositories

1

subway-rs

An extensible and practical demonstration of constructing evm-based sandwich attacks built with ethers-rs and Huff language.
Rust
443
star
2

cairomate

Structured, dependable legos for Starknet development.
Python
135
star
3

cloaks

Extensible ERC721 with a Built-in Commitment Scheme.
Solidity
90
star
4

optimism-rs

Scaling Ethereum, but this time in rust.
90
star
5

archon

An efficient, robust, and generalized batch submission service for rollup stacks written in pure rust.
Rust
88
star
6

cairo-by-example

Verbosely Documented, Minimal Starknet Contract Examples.
TypeScript
65
star
7

twam

Time Weighted Asset Mints
Solidity
64
star
8

unix

A lightweight, extensible foundry library for shell scripting.
Solidity
61
star
9

cairostarter

Forkable, Minimal Template for Starknet Projects.
Python
44
star
10

protec

An Isolated Safe Environment to Execute Foundry Projects.
Solidity
44
star
11

metamorphic

Huff-based Smart Contracts for creating Metamorphic (or "redeployable") EVM Contracts.
Solidity
44
star
12

cairopal

Modern, Flexible Starknet Dapp Template
TypeScript
41
star
13

snowglobe

A Logistic VRGDA ERC721 Token fractionalizing ownership of w1nt3r's https://snow.computer experiment
Solidity
32
star
14

spades

Sealed Price Appraisals for Deterministic Emissions
Solidity
31
star
15

op-challenger

A multi-mode op-stack challenge agent for dispute games written in golang.
Solidity
29
star
16

pilum

Lightweight, Modern Multicall3 Typescript Library
TypeScript
26
star
17

huffplate

Robust, Extensible Template for Huff Projects
Solidity
26
star
18

alchemy-rs

Minimal ethers-rs wrappers for the Alchemy API built in pure Rust.
Rust
25
star
19

nextjs-chakra-dapp

A template dapp using nextjs and chakra-ui.
TypeScript
24
star
20

archived-parcels

Modern, Opinionated Multicall Library
Solidity
23
star
21

amble

First class, scalable rust project generator with batteries included.
Rust
20
star
22

stdtests

Extensive Tests with the Forge Standard Library,
Solidity
20
star
23

geth-x

Examples, trickery, and self-documenting tomfoolery for interacting and working with go-ethereum including some breakage.
Go
20
star
24

ambiel

Lightweight, Gracefull Push + Pull Pattern Demo
Solidity
20
star
25

varro

A persistent, robust, and composable proposal service for rollup stacks written in pure rust.
Rust
18
star
26

crib

Extensible, Minimal Template for Sway Projects
Rust
17
star
27

rustbox

Rust Primitives, Learnings, & Frameworks
Rust
17
star
28

awesome-sway

Curated Resources for Sway Development and Learning
17
star
29

dots

An updated collection of useful dotfiles, utilities, and scripts that forms refcell's devx.
Lua
16
star
30

c4box

Code 4rena Sandbox & Exploits
Solidity
14
star
31

orbits

A collection of practical circom circuits
14
star
32

evolve

On-Chain Experiment Hub
Solidity
14
star
33

alloys

Modularized, Cross-Domain Fungible ERC721 Kinks
Solidity
14
star
34

decolor

Asynchronous runtime abstractions for implicit function decoloring.
Rust
12
star
35

evm.rs

Barebones Rust EVM Implementation
Rust
12
star
36

gprobe

A verbose CLI to probe go-ethereum data structures, built in rust.
Rust
12
star
37

vault-strategies

Rari Capital Vault Strategies
Solidity
11
star
38

seals

Sealed Auctions with Commitment Schemes.
Solidity
10
star
39

shipnauts

Shipyard Precourse Work Part 4
Solidity
10
star
40

tinkerbell

Sleek Modern Rainbowkit Dapp
TypeScript
10
star
41

huffy

Foundry x Huff Integration Tooling
Solidity
10
star
42

jwtauth

Minimal cli to interact with JWT Auth Tokens
Go
9
star
43

lice

Dead simple, minimal SPDX License generator library written in Rust.
Rust
9
star
44

crypts

A cairo port for Rari Capital Vaults
Python
9
star
45

austere.nvim

Austere is a minimally constructed neovim config built from the ground up.
Lua
8
star
46

mortys

Martingale Shares
Solidity
8
star
47

capital

Deep Valuation Models Β© Refcell Capital
8
star
48

reversevm

Notes on Reverse Engineering EVM Bytecode
Solidity
8
star
49

bluefly

One-shot vagrant engine for bootstrapping batteries-included development environments.
Lua
7
star
50

ddog

Minimal Datadog SDK Built in Pure Rust
Rust
7
star
51

hello-world

Hello World in Huff
7
star
52

soline

Load, Write, Deploy Solidity in the context of a Smart Contract
Solidity
6
star
53

cargo-hoist

Dead simple, memoized cargo subcommand to hoist cargo-built binaries into the current working directory, written in Rust.
Rust
6
star
54

rthaler

Thaler's Proofs, Args, and ZK Implemented in Rust using arkworks
Rust
4
star
55

ambits

Ranged Pricing Sessions
Solidity
4
star
56

next-playground

Next.js, Apollo, Typescript, React Playground for reliable data and rendering applications
JavaScript
4
star
57

faucet

fungibility-agnostic and gas-efficient token contracts for gamifying TVL
TypeScript
4
star
58

stub.rs

Modern, Extensible Rust Template
JavaScript
4
star
59

dapptoolspilled

Proof of Dapptools Pilled
Solidity
3
star
60

epic-nfts

Buildspace NFT Course - Alkes Cohort
Solidity
3
star
61

config

Environment Settings, Configuration, and Tooling
Lua
3
star
62

RustAlgorithms

Rust
3
star
63

boomerang

An Owned, Gas Efficient ERC721 For Mainnet Testing
Solidity
3
star
64

abigger87

Personal Repository for Readme Landing Page
Shell
3
star
65

cs350-docker

Docker container and run scripts for MIT's xv6 kernel. Useful for USC CSCI 350.
Shell
2
star
66

redwar

An NFT turn-based multiplayer wargame expanding the metaverse to Redwall!
TypeScript
2
star
67

0xAddress

Next.js to convert your wallet address into a legible name
TypeScript
2
star
68

hello-next

Next.js Playground
JavaScript
2
star
69

ab3

Updated Personal Blog
HTML
2
star
70

twiddles

A Collection of Breakage, Twiddles, and Odd Bitmagic
Solidity
2
star
71

EmDrive

3D Simulation of the EmDrive
JavaScript
2
star
72

docker-anvil-2

Dockerfile
1
star
73

PixelPath

PixelPath traces the path of your drawings pixels to create amazing music.
HTML
1
star
74

FractalTreeModels

Side project to create fractal tree models
Python
1
star
75

ml

Udemy Machine Learning Course
Python
1
star
76

morc

Dead simple, minimal markdown generator library written in Rust.
Rust
1
star
77

checkbin

Minimal binary to calculate the checksum for a binary in Golang.
Go
1
star
78

adms

New Setup for ADMS Traffic Matching
JavaScript
1
star
79

ab1

Personal Website Outdated
CSS
1
star
80

faucet-sdk

SDK for https://github.com/abigger87/faucet
TypeScript
1
star
81

particlesNewTab

Basic particles new tab for google chrome
JavaScript
1
star
82

fastmac

Shell
1
star
83

LadonsAsteroid

HTML
1
star
84

StocksXNews

chrome extension that makes the new chrome tab include stocks and news
JavaScript
1
star
85

docker-anvil-9

Dockerfile
1
star
86

docker-anvil-10

Dockerfile
1
star
87

CSH-Store

Website for the Cold Spring Harbor High School in-school Store.
HTML
1
star
88

SimpleToDo

JavaScript
1
star
89

epic-nfts-ui

Epic NFTs Dapp for Buildspace Minting NFTs Course - Alkes Cohort
JavaScript
1
star
90

next-learn-demo

Next.js Learning Demo Repo
HTML
1
star
91

RemainsOfTheDay

Fan Page for the Remains of the Day
HTML
1
star
92

LadonScriptor

Javascript testing site
HTML
1
star
93

ab2

Outdated ReactJS Personal Website
TypeScript
1
star
94

docker-anvil-8

Dockerfile
1
star
95

spacetag-api

API for https://github.com/elissaperdue/spacetag
TypeScript
1
star
96

nodejscourse

Udemy NodeJS Course
HTML
1
star
97

blockchain_game

Blockchain Game Clone from DappUniversity
Solidity
1
star
98

birds

Birds New Tab for google chrome - chrome extension
HTML
1
star
99

wave-portal-contracts

Wave Portal Built for the Buildpsace Course: Build a Web3 App with Solidity + Ethereum Smart Contracts
Solidity
1
star
100

spyput

HTML
1
star