generated from bgd-labs/bgd-forge-template
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: a bunch of generator fixes (#1)
* fix: a bunch of generator fixes * ci: add ci again * feat: generator improvements * fix: improve types * fix: update generator * fix: patch some more generator quirks * fix: add transfer of 1 uint into post execution * feat: add asset listing test * fix: another bunch of fixes * test: add tests for features * fix: remove some obsolete stuff * fix: use v2.5 for now * chore: update deps * fix: upgrade aave proposals * fix: remove obsolete helper * fix: update aave-helpers * fix: add initial readme * fix: remove test files
- Loading branch information
Showing
39 changed files
with
1,663 additions
and
559 deletions.
There are no files selected for viewing
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,12 @@ | ||
name: PR Comment | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Test] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
test: | ||
uses: bgd-labs/github-workflows/.github/workflows/comment.yml@main | ||
secrets: inherit |
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,57 @@ | ||
name: Ipfs uploader | ||
# Uploads all changed md files to ipfs once merged to main | ||
# Comments the pr | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
# cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
ipfs-upload: | ||
runs-on: ubuntu-latest | ||
name: Ipfs uploader | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: "https://registry.npmjs.org" | ||
cache: "yarn" | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Get all changed *.md file(s) | ||
id: changed-files | ||
uses: tj-actions/changed-files@f569b77fb1d9ad9f1a125757d7e9e07b1f320199 | ||
with: | ||
json: true | ||
write_output_files: true | ||
files: | | ||
src/**/*.md | ||
- name: Run step if any *.md file(s) change | ||
if: steps.changed-files.outputs.any_changed == 'true' | ||
run: | | ||
cat .github/outputs/all_changed_files.json | ||
- name: Upload | ||
if: steps.changed-files.outputs.any_changed == 'true' | ||
env: | ||
PINATA_KEY: ${{ secrets.PINATA_KEY }} | ||
PINATA_SECRET: ${{ secrets.PINATA_SECRET }} | ||
run: | | ||
json_array=($(jq -r '.[]' ".github/outputs/all_changed_files.json")) | ||
for i in "${json_array[@]}" | ||
do | ||
npx aave-cli ipfs $i -u ${{ github.event_name != 'pull_request'}} | ||
done |
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,5 @@ | ||
## AIP checklist | ||
|
||
- [ ] payload contains header comment linking discussion & snapshot | ||
- [ ] a test covering the changes is included | ||
- [ ] scripts are included |
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,18 @@ | ||
name: Test | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
uses: bgd-labs/github-workflows/.github/workflows/foundry-test.yml@main | ||
secrets: inherit | ||
with: | ||
mode: "CHANGED" |
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[submodule "lib/forge-std"] | ||
path = lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "lib/aave-helpers"] | ||
path = lib/aave-helpers | ||
url = https://github.com/bgd-labs/aave-helpers |
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
Oops, something went wrong.