Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Money Router Foundry tests #61

Merged
merged 12 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions .github/workflows/build-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
- name: Install, Build, and Test
run: |
cd "projects/${{ matrix.project }}"
forge install
forge install superfluid-protocol-monorepo=https://github.com/superfluid-finance/protocol-monorepo@dev --no-commit
forge install https://github.com/OpenZeppelin/[email protected] --no-commit
forge build
forge test
forge test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ build
dist
typechain
coverage
coverage.json
coverage.json
32 changes: 0 additions & 32 deletions .gitmodules

This file was deleted.

Submodule openzeppelin-contracts deleted from fd81a9
Submodule superfluid-protocol-monorepo deleted from b182e1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@

### A basic example to get you started with the Superfluid Constant Flow Agreement

This example has a Youtube walkthrough to go along with it! You can watch it here: https://www.youtube.com/watch?v=1mwbYQ429IU. Note that this tutorial only walks through the contract, not the Foundry test suite or package setup.
This example has a Youtube walkthrough to go along with it! You can watch it here: [https://www.youtube.com/watch?v=1mwbYQ429IU](https://www.youtube.com/watch?v=1mwbYQ429IU). Note that this tutorial only walks through the contract, not the Foundry test suite or package setup.

If you'd like to see a breakdown of the test file for this example, you can find a Youtube tutorial on this here: https://www.youtube.com/watch?v=C_PGd8CPdfg&t=1s.
If you'd like to see a breakdown of the test file for this example, you can find a Youtube tutorial on this here: [https://www.youtube.com/watch?v=C_PGd8CPdfg&t=1s](https://www.youtube.com/watch?v=C_PGd8CPdfg&t=1s).

1. Run `forge install` to install
2. `forge build` to compile contracts
3. `forge test` to run the test suite.
**Important Update**: This README reflects an updated version of the project. The Youtube tutorials linked above are based on an older version of this project.

Note: you might see an issue related to git when running forge install. If you see this error, try adding the `--no-commit` flag
To get started with the updated version:

1. Install dependencies with specific commands:

* `forge install superfluid-protocol-monorepo=https://github.com/superfluid-finance/protocol-monorepo@dev --no-commit`
* `forge install https://github.com/OpenZeppelin/[email protected] --no-commit`
2. Compile the contracts with `forge build`.

3. Run the test suite with `forge test`.
Loading
Loading