Skip to content

Commit

Permalink
Merge pull request #61 from superfluid-finance/super-examples-review
Browse files Browse the repository at this point in the history
Fix Money Router Foundry tests
  • Loading branch information
youssefea authored Jan 11, 2024
2 parents 794adf5 + 7ea5032 commit 1384869
Show file tree
Hide file tree
Showing 578 changed files with 35 additions and 65,455 deletions.
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

0 comments on commit 1384869

Please sign in to comment.