Skip to content

Commit

Permalink
Merge pull request #9 from shark0der/master
Browse files Browse the repository at this point in the history
Switch from forge to ape-hardhat
  • Loading branch information
rmelbardis authored Nov 16, 2023
2 parents ae0bf1c + b99b6b7 commit 33ac72a
Show file tree
Hide file tree
Showing 14 changed files with 4,000 additions and 550 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
.build
.coverage
.ipynb_checkpoints
.idea
.DS_Store
raw_data/
*.csv
**/__pycache__/
.env
BondingCurveNexus/config.py
graphs/
node_modules/
18 changes: 6 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM ubuntu:jammy

# add basic utils and python
# add basic utils
RUN apt-get update
RUN apt-get install -y curl git inotify-tools python3 python3-pip
RUN apt-get install -y curl git inotify-tools ca-certificates gnupg python3 python3-pip

# add nodejs
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get install -y nodejs

# add nodemon
Expand All @@ -17,14 +19,6 @@ RUN pip install -r requirements.txt --use-deprecated=legacy-resolver
RUN rm requirements.txt

RUN useradd -m ubuntu

USER ubuntu
ENV SHELL=/bin/bash
ENV HOME=/home/ubuntu
ENV PATH=${HOME}/.foundry/bin:${HOME}/bin:${PATH}

# add foundry
RUN curl -sqL https://foundry.paradigm.xyz | bash
RUN foundryup

CMD nodemon --watch scripts -e py -x ape run sim
CMD nodemon -w . -e py -x ape run sim
10 changes: 9 additions & 1 deletion ape-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
ethereum:
default_network: local
local:
default_provider: foundry
default_provider: hardhat

hardhat:
host: http://host.docker.internal:8545

test:
mnemonic: test test test test test test test test test test test junk
hd_path: "m/44'/60'/0'/0/{}"
number_of_accounts: 20
3 changes: 0 additions & 3 deletions cmd.sh

This file was deleted.

36 changes: 0 additions & 36 deletions contracts/CapitalPool.sol

This file was deleted.

206 changes: 0 additions & 206 deletions contracts/ERC20.sol

This file was deleted.

21 changes: 0 additions & 21 deletions contracts/NXM.sol

This file was deleted.

Loading

0 comments on commit 33ac72a

Please sign in to comment.