-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from RafaDSan/refactor/subgraph-sepolia
refactor: Deleting unecessary files from subgraph folder and Updating the subgraph to run in the Sepolia
- Loading branch information
Showing
49 changed files
with
3,263 additions
and
8,369 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Bug Report | ||
about: Create a bug report to help us improve | ||
title: "fix: " | ||
labels: bug | ||
assignees: "" | ||
--- | ||
|
||
## Bug Report | ||
|
||
### Swaplace version | ||
|
||
<!-- Please specify the commit or tag version. --> | ||
|
||
### Current behavior | ||
|
||
<!-- Describe how the bug manifests. --> | ||
|
||
### Expected behavior | ||
|
||
<!-- Describe what the behavior would be without the bug. --> | ||
|
||
### Steps to reproduce | ||
|
||
<!-- Please explain the steps required to duplicate the issue, | ||
especially if you can provide a sample application. --> | ||
|
||
### Related code | ||
|
||
<!-- If you can illustrate the bug or feature request | ||
with an example, please provide it here. --> | ||
|
||
```sh | ||
insert short code snippets here | ||
``` | ||
|
||
### Other information | ||
|
||
<!-- Could you list any other information that is relevant to your issue? | ||
Related issues, suggestions on how to fix, Stack Overflow links, | ||
forum links, etc. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Swaplace Community Support | ||
url: https://github.com/blockful-io/swaplace-contracts/discussions | ||
about: Please ask and answer questions here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
name: Feature Request | ||
about: Suggest an idea or enhancement for this project | ||
title: "feat:" | ||
labels: enhancement | ||
assignees: "" | ||
--- | ||
|
||
## Feature Request | ||
|
||
### Describe the Feature Request | ||
|
||
<!-- A clear and concise description of the feature request. | ||
Please include if your feature request is related to a problem. --> | ||
|
||
### Describe Preferred Solution | ||
|
||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
### Describe Alternatives | ||
|
||
<!-- A clear and concise description of any alternative solutions or | ||
features you've considered. --> | ||
|
||
### Related Code | ||
|
||
<!-- If you can illustrate the bug or feature request with an | ||
example, please provide it here. --> | ||
|
||
### Additional Context | ||
|
||
<!-- List any other information that is relevant to your issue. Stack traces, | ||
related issues, suggestions on how to add, use case, Stack Overflow links, | ||
forum links, screenshots, OS if applicable, etc. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
name: Refactor Request | ||
about: Suggest the refactoring for this project | ||
title: "refactor:" | ||
labels: enhancement | ||
assignees: "" | ||
--- | ||
|
||
## Refactor Request | ||
|
||
### Describe the Refactor Request | ||
|
||
<!-- A clear and concise description of the refactor request. | ||
Please include if your refactor request is related to a problem. --> | ||
|
||
### Describe Preferred Solution | ||
|
||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
### Describe Alternatives | ||
|
||
<!-- A clear and concise description of any alternative solutions or | ||
features you've considered. --> | ||
|
||
### Related Code | ||
|
||
<!-- If you can illustrate the bug or refactor request with an | ||
example, please provide it here. --> | ||
|
||
### Additional Context | ||
|
||
<!-- List any other information that is relevant to your issue. Stack traces, | ||
related issues, suggestions on how to add, use case, Stack Overflow links, | ||
forum links, screenshots, OS if applicable, etc. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Fuzz Testing | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
echidna: | ||
name: Echidna | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
testName: | ||
- TestFactory | ||
- TestSwaplace | ||
|
||
env: | ||
DEPLOYER_PRIVATE_KEY: ${{ vars.DEPLOYER_PRIVATE_KEY }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18.16.0 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install node dependencies | ||
run: yarn install | ||
|
||
- name: Install pip3 | ||
run: | | ||
python -m pip install --upgrade pip | ||
- name: Install slither | ||
run: | | ||
pip3 install slither-analyzer | ||
- name: Install echidna | ||
run: | | ||
sudo wget -O /tmp/echidna-2.2.1-Linux.zip https://github.com/crytic/echidna/releases/download/v2.2.1/echidna-2.2.1-Linux.zip | ||
sudo unzip /tmp/echidna-2.2.1-Linux.zip -d /usr/bin | ||
sudo tar -xf /usr/bin/echidna.tar.gz -C /usr/bin | ||
sudo chmod +x /usr/bin/echidna | ||
- name: Run ${{ matrix.testName }} as properties | ||
run: echidna . --contract ${{ matrix.testName }} --test-mode property --config echidna.config.yml | ||
|
||
- name: Run ${{ matrix.testName }} as assertion | ||
run: echidna . --contract ${{ matrix.testName }} --test-mode assertion --config echidna.config.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
unit-tests: | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
DEPLOYER_PRIVATE_KEY: ${{ vars.DEPLOYER_PRIVATE_KEY }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18.16.0 | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
# This is required separately from yarn test because it generates the typechain definitions | ||
- name: Compile | ||
run: yarn compile | ||
|
||
- name: Run unit tests | ||
run: yarn test |
Oops, something went wrong.