-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58e63fa
commit 5a2d218
Showing
44 changed files
with
2,083 additions
and
5,229 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,61 @@ | ||
name: Daily Analysis Phylum | ||
|
||
on: | ||
schedule: | ||
# Runs at 13:00 UTC every day | ||
- cron: '0 13 * * *' | ||
|
||
env: | ||
PHYLUM_PROJECT_ID: fb999d0c-b260-474e-8c08-2f163aa2c75f | ||
PHYLUM_GROUP_NAME: Wallet | ||
PHYLUM_NAME: sargon | ||
jobs: | ||
analyze_branch_phylum: | ||
name: Analyze dependencies with Phylum | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
branch: [main] | ||
include: | ||
- branch: main | ||
fail-fast: false | ||
steps: | ||
- uses: RDXWorks-actions/checkout@main | ||
with: | ||
ref: ${{ matrix.branch }} | ||
fetch-depth: 0 | ||
- uses: RDXWorks-actions/setup-python@main | ||
with: | ||
python-version: 3.10.6 | ||
- name: Install Phylum | ||
run: | | ||
curl https://sh.phylum.io/ | sh -s -- --yes | ||
# Add the Python user base binary directory to PATH | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
- name: Run Phylum Analysis | ||
env: | ||
PHYLUM_API_KEY: ${{ secrets.PHYLUM_API_KEY }} | ||
run: | | ||
phylum analyze --quiet --label ${{ matrix.branch }}_branch_daily_schedule > /dev/null 2>&1 || exit_code=$? | ||
if [ $exit_code -eq 100 ]; then | ||
echo "Phylum Analysis returned exit code 100, but continuing."; | ||
echo "phylum_analyze_status=failure" >> $GITHUB_ENV | ||
exit 0; | ||
else | ||
echo "phylum_analyze_status=success" >> $GITHUB_ENV | ||
exit $?; | ||
fi | ||
- name: Analysis Status Failure notification | ||
if: always() | ||
uses: RDXWorks-actions/notify-slack-action@master | ||
with: | ||
status: ${{ env.phylum_analyze_status }} | ||
notify_when: 'failure' | ||
notification_title: ':clock3: Phylum Scheduled Daily Analysis:' | ||
message_format: 'Automatic phylum analysis has found vulnerabilities on ${{ env.PHYLUM_NAME }} in ${{ matrix.branch }} branch:boom:' | ||
footer: "Linked Repository <{repo_url}|{repo}> | <https://app.phylum.io/projects/${{ env.PHYLUM_PROJECT_ID }}?label=${{ matrix.branch }}_branch_daily_schedule&group=${{ env.PHYLUM_GROUP_NAME }}|View Report> " | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PHYLUM_WALLET_TEAM_WEBHOOK }} |
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
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,7 @@ | ||
id: fb999d0c-b260-474e-8c08-2f163aa2c75f | ||
name: sargon | ||
created_at: 2024-06-03T13:06:05.511629+02:00 | ||
group_name: Wallet | ||
depfiles: | ||
- path: ./Cargo.lock | ||
type: cargo |
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
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
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
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
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
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
65 changes: 65 additions & 0 deletions
65
crates/sargon/fixtures/transaction/account_locker_claim_fungibles_and_non_fungibles.dat
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,65 @@ | ||
{ | ||
"kind": "CommitSuccess", | ||
"state_updates_summary": { | ||
"new_entities": [], | ||
"metadata_updates": {}, | ||
"non_fungible_data_updates": {}, | ||
"newly_minted_non_fungibles": [] | ||
}, | ||
"worktop_changes": { | ||
"0": [ | ||
{ | ||
"kind": "Put", | ||
"value": { | ||
"kind": "Ids", | ||
"resource_address": "resource_tdx_2_1n2z4k99wuqlph9lj64ckc64znm48axl37xctsa0xqmm2sqg7klrte3", | ||
"ids": [ | ||
"#8#" | ||
] | ||
} | ||
} | ||
], | ||
"1": [ | ||
{ | ||
"kind": "Take", | ||
"value": { | ||
"kind": "Ids", | ||
"resource_address": "resource_tdx_2_1n2z4k99wuqlph9lj64ckc64znm48axl37xctsa0xqmm2sqg7klrte3", | ||
"ids": [ | ||
"#8#" | ||
] | ||
} | ||
} | ||
], | ||
"3": [ | ||
{ | ||
"kind": "Put", | ||
"value": { | ||
"kind": "Amount", | ||
"resource_address": "resource_tdx_2_1th75jg2gx9l3v0r8duzrmknfarhd3ha0387lg9n78qc9849xsfyq32", | ||
"amount": "3" | ||
} | ||
} | ||
], | ||
"4": [ | ||
{ | ||
"kind": "Take", | ||
"value": { | ||
"kind": "Amount", | ||
"resource_address": "resource_tdx_2_1th75jg2gx9l3v0r8duzrmknfarhd3ha0387lg9n78qc9849xsfyq32", | ||
"amount": "3" | ||
} | ||
} | ||
] | ||
}, | ||
"fee_summary": { | ||
"execution_fees_in_xrd": "0.2516311", | ||
"finalization_fees_in_xrd": "0.03200635", | ||
"storage_fees_in_xrd": "0.12903213279", | ||
"royalty_fees_in_xrd": "0" | ||
}, | ||
"locked_fees": { | ||
"contingent": "0", | ||
"non_contingent": "0" | ||
} | ||
} |
1,356 changes: 0 additions & 1,356 deletions
1,356
crates/sargon/fixtures/transaction/account_locker_claim_fungibles_and_non_fungibles.json
This file was deleted.
Oops, something went wrong.
67 changes: 67 additions & 0 deletions
67
crates/sargon/fixtures/transaction/claim_two_stakes_from_one_validator.dat
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,67 @@ | ||
{ | ||
"kind": "CommitSuccess", | ||
"state_updates_summary": { | ||
"new_entities": [], | ||
"metadata_updates": {}, | ||
"non_fungible_data_updates": {}, | ||
"newly_minted_non_fungibles": [] | ||
}, | ||
"worktop_changes": { | ||
"0": [ | ||
{ | ||
"kind": "Put", | ||
"value": { | ||
"kind": "Ids", | ||
"resource_address": "resource_tdx_2_1ng3g2nj5pfpmdphgz0nrh8z0gtqcxx5z5dn48t85ar0z0zjhefufaw", | ||
"ids": [ | ||
"{1c1ce92c810094a7-65659db6a666c19c-6cea4367bb789b55-276b137712ceecce}", | ||
"{5aebd0270caf3f87-51031498741f57b5-d24fe0d62a976589-519c6a92423888cc}" | ||
] | ||
} | ||
} | ||
], | ||
"1": [ | ||
{ | ||
"kind": "Take", | ||
"value": { | ||
"kind": "Ids", | ||
"resource_address": "resource_tdx_2_1ng3g2nj5pfpmdphgz0nrh8z0gtqcxx5z5dn48t85ar0z0zjhefufaw", | ||
"ids": [ | ||
"{1c1ce92c810094a7-65659db6a666c19c-6cea4367bb789b55-276b137712ceecce}", | ||
"{5aebd0270caf3f87-51031498741f57b5-d24fe0d62a976589-519c6a92423888cc}" | ||
] | ||
} | ||
} | ||
], | ||
"2": [ | ||
{ | ||
"kind": "Put", | ||
"value": { | ||
"kind": "Amount", | ||
"resource_address": "resource_tdx_2_1tknxxxxxxxxxradxrdxxxxxxxxx009923554798xxxxxxxxxtfd2jc", | ||
"amount": "150" | ||
} | ||
} | ||
], | ||
"3": [ | ||
{ | ||
"kind": "Take", | ||
"value": { | ||
"kind": "Amount", | ||
"resource_address": "resource_tdx_2_1tknxxxxxxxxxradxrdxxxxxxxxx009923554798xxxxxxxxxtfd2jc", | ||
"amount": "150" | ||
} | ||
} | ||
] | ||
}, | ||
"fee_summary": { | ||
"execution_fees_in_xrd": "0.2383276", | ||
"finalization_fees_in_xrd": "0.041757", | ||
"storage_fees_in_xrd": "0.11224746511", | ||
"royalty_fees_in_xrd": "0" | ||
}, | ||
"locked_fees": { | ||
"contingent": "0", | ||
"non_contingent": "0" | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
crates/sargon/fixtures/transaction/claim_two_stakes_from_one_validator.rtm
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,33 @@ | ||
CALL_METHOD | ||
Address("account_tdx_2_129uv9r46an4hwng8wc97qwpraspvnrc7v2farne4lr6ff7yaevaz2a") | ||
"lock_fee" | ||
Decimal("0.571994908619") | ||
; | ||
CALL_METHOD | ||
Address("account_tdx_2_129uv9r46an4hwng8wc97qwpraspvnrc7v2farne4lr6ff7yaevaz2a") | ||
"withdraw_non_fungibles" | ||
Address("resource_tdx_2_1ng3g2nj5pfpmdphgz0nrh8z0gtqcxx5z5dn48t85ar0z0zjhefufaw") | ||
Array<NonFungibleLocalId>( | ||
NonFungibleLocalId("{1c1ce92c810094a7-65659db6a666c19c-6cea4367bb789b55-276b137712ceecce}"), | ||
NonFungibleLocalId("{5aebd0270caf3f87-51031498741f57b5-d24fe0d62a976589-519c6a92423888cc}") | ||
) | ||
; | ||
TAKE_ALL_FROM_WORKTOP | ||
Address("resource_tdx_2_1ng3g2nj5pfpmdphgz0nrh8z0gtqcxx5z5dn48t85ar0z0zjhefufaw") | ||
Bucket("bucket1") | ||
; | ||
CALL_METHOD | ||
Address("validator_tdx_2_1sdtnujyn3720ymg8lakydkvc5tw4q3zecdj95akdwt9de362mvtd94") | ||
"claim_xrd" | ||
Bucket("bucket1") | ||
; | ||
TAKE_FROM_WORKTOP | ||
Address("resource_tdx_2_1tknxxxxxxxxxradxrdxxxxxxxxx009923554798xxxxxxxxxtfd2jc") | ||
Decimal("150") | ||
Bucket("bucket2") | ||
; | ||
CALL_METHOD | ||
Address("account_tdx_2_129uv9r46an4hwng8wc97qwpraspvnrc7v2farne4lr6ff7yaevaz2a") | ||
"deposit" | ||
Bucket("bucket2") | ||
; |
1 change: 0 additions & 1 deletion
1
crates/sargon/fixtures/transaction/claim_two_validator_stakes.dat
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.