-
Notifications
You must be signed in to change notification settings - Fork 156
Verify SC files automatically #506
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
Merged
Franziska-Mueller
merged 25 commits into
develop
from
feature/2025-08-13-contract-verify
Aug 20, 2025
Merged
Changes from 21 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
5e22e85
compliance changes for CCF SC
Franziska-Mueller 00a8607
compliance changes for GQMPROP SC
Franziska-Mueller 3f4c16c
compliance changes for MSVAULT SC
Franziska-Mueller 8acf937
compliance changes for QEARN SC
Franziska-Mueller 3d71240
compliance changes for QBAY SC
Franziska-Mueller 2ddaccf
compliance changes for QUOTTERY SC
Franziska-Mueller 2568178
compliance changes for QUTIL SC
Franziska-Mueller 7b1c9df
compliance changes for QX SC
Franziska-Mueller 0377446
Qx: add div type explicitly to fix compile errors in test project
Franziska-Mueller 7bf1714
compliance changes for TestExampleD SC
Franziska-Mueller 8c08aa9
add contract verify workflow
Franziska-Mueller aec4ca7
Update contract-verify.yml
Franziska-Mueller 25017e6
update branch name in contract-verify.yml
Franziska-Mueller beb82b0
find all contract files to verify
Franziska-Mueller 3e2a7f5
fix typo in contract-verify.yml
Franziska-Mueller 7b611f8
print full path to file list
Franziska-Mueller 131e673
use list of contract files as input for verify action
Franziska-Mueller 8aa3486
only trigger contract-verify.yml when contract files or workflow file…
Franziska-Mueller 6fbd535
use published action in contract-verify.yml
Franziska-Mueller b913851
Revert "use published action in contract-verify.yml"
Franziska-Mueller 3f4a85f
mention contract verification tool in contracts.md
Franziska-Mueller c0510bd
make QPI div and mod constexpr
Franziska-Mueller cd67d39
update contract verify tool text in contracts.md
Franziska-Mueller 20ec9f5
add STATIC_ASSERT macro to enable use of static asserts in SC files
Franziska-Mueller 78ae196
remove workflow trigger on feature branch before merging into develop
Franziska-Mueller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,37 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
|
|
||
| name: ContractVerify | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main", "develop", "feature/2025-08-13-contract-verify" ] | ||
| paths: | ||
| - 'src/contracts/*.h' | ||
| - '.github/workflows/contract-verify.yml' | ||
| pull_request: | ||
| branches: [ "main", "develop", "feature/2025-08-13-contract-verify" ] | ||
| paths: | ||
| - 'src/contracts/*.h' | ||
| - '.github/workflows/contract-verify.yml' | ||
|
|
||
| jobs: | ||
| contract_verify_job: | ||
| runs-on: ubuntu-latest | ||
| name: Verify smart contract files | ||
| steps: | ||
| # Checkout repo to use files of the repo as input for container action | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Find all contract files to verify | ||
| id: filepaths | ||
| run: | | ||
| files=$(find src/contracts/ -maxdepth 1 -type f -name "*.h" ! -name "*TestExample*" ! -name "*math_lib*" ! -name "*qpi*" -printf "%p\n" | paste -sd, -) | ||
| echo "contract-filepaths=$files" >> "$GITHUB_OUTPUT" | ||
| - name: Contract verify action step | ||
| id: verify | ||
| uses: Franziska-Mueller/qubic-contract-verify@v0.3.0-beta | ||
| with: | ||
| filepaths: '${{ steps.filepaths.outputs.contract-filepaths }}' |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.