Skip to content

Commit

Permalink
🤖 add foundry directories
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Jul 31, 2022
1 parent 2ec2ba3 commit f35f345
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Ignore all Visual Studio Code settings
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local history for Visual Studio Code
.history

# Built Visual Studio Code extensions
*.vsix

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# Foundry files
bin
cache
out
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std.git
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# 🐍 snekmate

State-of-the-art, highly opinionated, hyper-optimised, and secure Vyper smart contract building blocks.
12 changes: 12 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## defaults for all profiles
[default]
src = 'src' # the source directory
test = 'test' # the test directory
out = 'out' # the output directory (for artifacts)
libs = ['lib'] # a list of library directories
remappings = ['ds-test/=lib/ds-test/src/'] # a list of remappings
cache = true # whether to cache builds or not
cache_path = 'cache' # where the cache is stored if enabled
force = true # whether to ignore the cache (clean build)
ffi = true # whether to enable foreign function interface (ffi) cheatcodes or not
verbosity = 3 # the verbosity of tests
1 change: 1 addition & 0 deletions lib/forge-std
Submodule forge-std added at 27e14b
15 changes: 15 additions & 0 deletions src/SimpleStore.vy
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

val: uint256

@external
def __init__(_val: uint256):
self.val = _val


@external
def store(_val: uint256):
self.val = _val

@external
def get() -> uint256:
return self.val
Empty file added test/.gitkeep
Empty file.

0 comments on commit f35f345

Please sign in to comment.