-
Notifications
You must be signed in to change notification settings - Fork 13
chore(release): v1.0.0-pre.1 #27
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
Changes from 218 commits
Commits
Show all changes
240 commits
Select commit
Hold shift + click to select a range
7d5553c
MVP PoC
CharlVS 3d05da8
Refactor for web support
CharlVS a4e00b5
Add automated build system
CharlVS a95b45f
Init `komodo_wallet_cli` package
CharlVS 403c734
Initial version with macOS and web support
CharlVS bdcb7b5
Add RPC calls
CharlVS 1ab3cb7
Re-organise komodo_defi_framework as a sub-package
CharlVS 97259a5
Placeholder project README
CharlVS 4e13d36
Bump minimum Flutter version to support automated builds
CharlVS 132e1fb
Init entry point package
CharlVS 1884edc
Init package for common types
CharlVS c48f32d
Update init project template info
CharlVS 328cb98
Init package for RPC methods classes
CharlVS 61d1c8d
Introduce RPC methods package
CharlVS 55962cd
Minor documentation/renaming
CharlVS a86c019
Init symbol converter package
CharlVS b207f1a
Init UI package
CharlVS 4d2558f
Change UI package name
CharlVS e37a609
Init widget package story book catalog
CharlVS 343e7a0
Implement cross-platform native/wasm local+remote KDF
CharlVS eb77c08
Add HTTPS warnings in example app
CharlVS b7d6fd1
Change RPC input button to shortcut to new RPC playground
CharlVS e55f385
Fix upgraded linter errors
CharlVS ceb1177
Rename ‘web’ references to ‘wasm’
CharlVS d3e1e07
QoL improvements and remove hard-coded example RPC pass
CharlVS 907f9f6
Example bugfix and add repository URL
CharlVS 0771444
Re-add proxy for web
CharlVS 0de9210
Fix example app bug
CharlVS 18d30d3
Allow changing config while running
CharlVS ac043d1
Init local authentication package
CharlVS 0cb0c64
Komodo Defi JSON utils consolidation
CharlVS dd8c383
Update README.md
CharlVS 3c34bf6
Fix README URL
CharlVS 9e17296
Update README.md
CharlVS dbf809a
Update proxy
CharlVS ee0c1da
Update README.md
CharlVS a056432
Init auth example app
CharlVS 66c4193
Add RPC Requests: GUI Storage
CharlVS 66e7f58
Update build config to the latest KDF API
CharlVS 84b0af8
Add dragon logs as a submodule
CharlVS 94c88ec
Revert "Add dragon logs as a submodule"
CharlVS 378e048
Major changes and additions
CharlVS f8f9e2d
Lint fixes/formatting
CharlVS 99ac066
Fix linter-fixes
CharlVS 1b6255d
Add more verbose logging to defi api build step with levels
takenagain e1ed6dd
Create output directory if it does not exist in zip extraction step
takenagain 370b45c
Add more logging and response status code checks
takenagain ecea7bf
Resolve relative paths and check if dirs match
takenagain c9f96d8
Add github api provider with token and build config model
takenagain 3a2609a
Add more logging and fix analyser warnings
takenagain b4dc987
Merge pull request #1: Add authentication headers to GitHub api requests
CharlVS a3bb681
bulid(build_transformer): add very good analysis linting (#2)
takenagain df0cd24
MVP auth SDK and other progress
CharlVS ff6bc83
fix(build_transformer): npm error when building without `package.json…
takenagain 388f042
Upgrade to latest stable Flutter `3.24.3`
CharlVS dad1fc7
Implement KDF RPC locking
CharlVS cc9061e
Use absolute nodejs path on Windows (#4)
takenagain 09fe7da
Fix macOS launch
CharlVS 9a95dd9
Init Komodo coins package
CharlVS dbc10cc
PoC with coin activation working
CharlVS 7f4affb
Abstract out activation status to handle internally
CharlVS da1e655
fix(build-transformer): ios xcode errors (#6)
takenagain aed015f
build step: fetch_at_build_enabled for fetch coins (#5)
takenagain 1427b0e
Initial multi/HD address support
CharlVS 5b3b418
Implement and create example for multi-address SDK
CharlVS cfb9c16
fix(komodo-defi-framework): normalise kdf startup process between nat…
takenagain 000d814
Rework to support both HD and non-HD launch mode
CharlVS 9d9bd67
End-to-end HD wallet support
CharlVS 5fb13fb
Update KDF version
CharlVS fe9b8ea
Remove unsafe context lookup from example app
CharlVS 4111565
fix(bug): Fix JSON list parsing
CharlVS 683638d
fix(komodo-defi-framework): export coin icons (#8)
takenagain 7bc84e3
feature(build-transformer): concurrent coin asset download (#9)
takenagain 3b2518f
Update README.md
CharlVS 8954d59
fix auth register function (#10)
takenagain b34e1ad
Update KDF version
CharlVS a27595d
Expand and enhance activation system
CharlVS 21022cf
Re-generate indexes
CharlVS b351e35
Full coverage for protocol activations
CharlVS 1134b8f
Bug - fix missed auth change
CharlVS c08446c
Fix ERC requests and apply Dart fix/format
CharlVS 91feafb
Update KDF version
CharlVS 7cd5aad
Bug - Filter out non-WSS electrums on web
CharlVS 46f81fb
fix(kdf_operations): reduce wasm log verbosity in release mode (#11)
takenagain 53103fe
fix(auth_service): hd wallet registration deadlock (#12)
takenagain 1a54425
feat(transactions) - Initial transaction history implementation (#13)
CharlVS 8fbf81d
Implement SDK constructor from existing KDF instance
CharlVS bd4cb91
Fix SDK late parameter issue
CharlVS 5a3b8fd
feat(withdrawals): Implement HD withdrawals
CharlVS 497c9ad
Re-generate broken indexes
CharlVS 63458cf
Ci testing
CharlVS 6254110
Merge branch 'main' into dev
CharlVS b848476
Hot fix: Add pubkey property needed for GUI
CharlVS b1d0d33
GUI - Add a method for storing active user metadata
CharlVS 23ff41d
Update KDF to latest release version
CharlVS 2212b06
fix(kdf-wasm-ops): response type conversion and migrate to js_interop…
takenagain 60d354d
Bug(import): Fix incorrect encrypted seed parsing
CharlVS 488aa1e
Add necessary fields to `Transaction` type
CharlVS 33611b7
Refactor(tx history): Fix misrepresented fees field
CharlVS c565a40
Bug(wasm): remove validation for legacy methods
CharlVS feb1587
remove legacy coin model from types index (#15)
takenagain 09a1820
Add additional transaction balance change details
CharlVS 02ec110
Add `coin` to FeeInfo
CharlVS f6cb661
Bump down min `equatable` version
CharlVS d397c3c
Misc formatting fixes
CharlVS 185fb35
ci(example): WIP setup previews for SDK example app
CharlVS 63dbdbd
Ci fixes
CharlVS 94b050b
fix(example): encrypted seed import (#16)
takenagain 10a784a
fix(debugging): Avoid unnecessary exceptions
CharlVS 2707fc8
bug(tx): Fix broken legacy UTXO tx history
CharlVS 0643805
feat(asset): Add legacy asset transition helpers
CharlVS 6ba773b
Bug(assets): Fix missing export for legacy extension
CharlVS 19b9e94
feat(HD): Implement GUI utility for asset status
CharlVS de801c4
Amend previous commit
CharlVS e51e758
fix(auth_service): legacy wallet bip39 validation (#18)
takenagain b19bcd9
Perf: migrate packages to Dart workspace
CharlVS a11acd0
Revert "Perf: migrate packages to Dart workspace"
CharlVS 7c0c5d0
(bug): Fix broken ERC tx fetching
CharlVS 415baea
fix(activation): Fix eth activation parsing exception
CharlVS 6c7cb9b
feat(builds): Add regex pattern support for KDF download
CharlVS 87ed8da
chore(flutter): Apply iOS changes for flutter upgrade
CharlVS e37a463
refactor(types): Restructure type packages
CharlVS f4edd33
fix(types): Make types index private
CharlVS d5fe417
chore(ui): Scaffold out UI package structure
CharlVS 03c892a
docs(ui): Document UI package structure
CharlVS 587eae3
chore(deps): update flutter_secure_storage to v9.2.4 (#20)
takenagain 729297f
feat(ui): Migrate withdrawal-related widgets from KW
CharlVS e8d9e1f
feat(types): Iterate on withdrawal-related types
CharlVS d9beea3
feat(UI): Migrate QR code scanner from KW
CharlVS cd9ff8b
bug(tx): Fix and optimise transaction history SDK
CharlVS 1f375dd
feat(build): Add regex support for KDF download
CharlVS 4d09e5e
feat(sdk): Implement remaining SDK withdrawal functionality
CharlVS a3bfd84
chore(deps): update flutter_secure_storage to v9.2.4 (#20)
takenagain 2bf2566
docs(remote): Initial komodo_defi_remote package implementation plan
CharlVS ce30f8c
docs(workers): document KDF workers proposal and v2 remote
CharlVS 9c75bb7
feat(sdk): Multi-SDK instance support
CharlVS a5aecee
fix(multi-sdk): Fix example app withdrawals SDK instance
CharlVS b6fdae5
fix(kdf): Update KDF for HD withdrawal bug
CharlVS afcdfd9
fix(asset-manager): add missing ticker index initialization (#24)
takenagain 0d2f45a
refactor(build_transformer): move api release download and extraction…
takenagain 02e3ea9
fix(assets): Add ticker-safe asset lookup
CharlVS 204fdfe
fix(transaction-history): non-hd transaction history support (#25)
takenagain 0a210cf
feat: custom token import (#22)
takenagain 3b97036
build: fix desktop and mobile builds (#26)
takenagain 8d0a162
fix(transaction-storage): transaction streaming errors and hanging du…
takenagain 6ce8fce
chore(flutter): Upgrade Flutter and dependencies
CharlVS 9b5df8f
build: rename libraries from 'mm2' to 'kdf' (#29)
takenagain 674c1d1
feat(hd): HD withdrawal supporting widgets and (WIP) multi-instance e…
CharlVS 1a64432
fix(transaction-history): EVM StackOverflow exception (#30)
takenagain 5960abf
chore(deps): update KDF checksums (#31)
takenagain 1854999
fix(example): Fix registration form regression
CharlVS 7712c2b
fix(local-exe-ops): local executable startup and registration (#33)
takenagain 96414c3
bug(auth): Fix registration failing on Windows and Windows web builds…
CharlVS 1ccb3f0
chore(deps): kdf 2.4.0 update (#32)
takenagain af79b7d
bug(windows): Fix incompatibility between Nvidia Windows drivers and …
CharlVS 2a9d704
chore(deps): kdf 2.4.0 update from `dev` (#36)
takenagain 1bd8e52
fix(native-ops): mobile kdf startup config requires dbdir parameter (…
takenagain 67289af
feat(ci/kdf): Add script to update API build config
CharlVS ad6d203
feat: migrate komodo_cex_market_data from komod-wallet (#37)
takenagain c96a681
add(types): Add missing asset-related fields needed by GUI
CharlVS 84deffd
add(ui_kit): Rework TrendPercentageText to be more re-usable
CharlVS 237e235
feat(sdk): Balance manager WIP
CharlVS 7578041
feat(dev): Install `melos`
CharlVS ab3526a
chore(cleanup): Delete widgetbook
CharlVS fe0f263
fix(deps): Remove `postman_collection` and refactor
CharlVS 8dd8a76
chore(fix): Fix invalid checked-in file name for Windows
CharlVS 0bc828a
feat(signing): Implement message signing + format
CharlVS 26a7316
chore(merge): Re-generate files and resolve merge errors
CharlVS 75bead6
refactor(sdk): implement dependency injection with GetIt container
CharlVS 0d2ad08
feat(sdk): redesign balance manager with improved API and reliability
CharlVS e97f2c4
refactor(sdk): restructure activation and asset management flow
CharlVS 318116e
feat(ui): redesign core input components with improved UX
CharlVS e4dbffe
feat(ui): enhance withdrawal form components with better validation a…
CharlVS 1132f59
refactor(sdk): update transaction history manager for new architecture
CharlVS ef1e33a
refactor(sdk): improve transaction history and withdrawal managers
CharlVS debadb9
feat(types): add new models and utility classes for reactive data han…
CharlVS 32e45fe
build: update build configuration for multiple platforms
CharlVS 6283d03
build(deps): update dependencies and build configurations
CharlVS 86ed533
feat(operations): update KDF operations interface and implementations
CharlVS e919f10
feat(auth): enhance local authentication and secure storage
CharlVS 54ded02
feat(ui): update asset components and SDK integrations
CharlVS b59e561
feat(transactions): add activations and withdrawal priority features
CharlVS e1f1941
refactor(ui): improve balance text widget implementation
CharlVS 15f314b
feat(error-handling): enhance balance and address loading error states
CharlVS 00dd545
feat(ui): improve asset list and authentication UI
CharlVS e9b718e
refactor: improve code quality and documentation
CharlVS 6f92e02
build: fix kdf copy step error on windows and remove appdata copy ste…
takenagain 1d88178
feat: enhance balance and market data management in SDK
CharlVS 999ef3b
chore(sdk): Roll KDF SDK version
CharlVS d8a095e
chore(indexes): Fix Dart formatting issue in index configs
CharlVS 7eefe4b
chore(deps): bump KDF commit hash (#42)
takenagain 2d41133
refactor(komodo_defi_framework): add static, global log verbosity fla…
takenagain a89e51e
fix(cli): Fix encoding for KDF config updater script
CharlVS 4ae7d0d
feat(source-address-field): add show balance toggle (#43)
takenagain 7948461
chore: Format build config and migrate git to hosted
CharlVS 15abce0
fix(types): Fix Sub-class naming
CharlVS 58140bf
feat(auth): Add update password feature
CharlVS 97b7202
Chore: Init compliance console project
CharlVS 36039d5
fix(kdf): Rebuild KDF checksums
CharlVS d9d9db4
feat(KDF): Make provision for HD mode signing
CharlVS b1d58f3
fix(withdraw): update amount when isMaxAmount and show dropdown icon …
takenagain 648a12b
chore(deps): Final deps upgrade
CharlVS 6fdcc0e
fix(rpc): Remove flutter dependency from RPC package
CharlVS 67e531e
fix(native-auth-ops): remove exceptions from logs in KDF restart func…
takenagain bb77d30
feat: runtime coin updates (#38)
takenagain dbcd459
feat(signing): Add message signing prefix to models
CharlVS 55ed32c
fix(ui): convert error display to stateful widget to toggle detailed …
takenagain 99eec10
feat: nft enable RPC and activation params (#39)
takenagain b1ca1e7
chore(kdf): Roll SDK version
CharlVS 47435a1
build(kdf): update platform checksums (#47)
takenagain db94fb4
chore(deps): upgrade remaining deps (#48)
takenagain 7755141
fix(auth): Translate KDF errors to auth errors
CharlVS 9786eb7
feat(auth): Implement new exceptions for update password RPC
CharlVS 0e5b1f8
chore(deps): switch back to KDF dev branch and update checksums (#49)
takenagain f001976
chore(deps): bump KDF hash and checksums (#50)
takenagain 810275b
feat(ui): Address and fee UI enhancements + formatting
CharlVS fd5232f
ci: add GitHub Actions workflow to roll KDF version automatically
CharlVS 27fe9f1
chore: roll KDF version to commit 600ea71 for branch dev (#52)
github-actions[bot] 51e4f0e
chore: roll KDF build
CharlVS a6ac41d
feat(playground): Auto-update KDF postman collection
CharlVS 3d23a0f
chore(kdf): Roll KDF version to release v2.4.0-beta
CharlVS 1c3d8cc
feat(playground): Playground fixes and enhancements
CharlVS 9633d16
ci: Firebase deployments for example apps
CharlVS c9e3a84
Merge branch 'main' into dev
CharlVS 48d8e48
ci: ci build scripts fixes
CharlVS 9519157
feat(auth): allow weak password in auth options (#54)
takenagain 46350cb
fix: breaking tendermint config changes and build transformer not usi…
takenagain 6eb19be
ci: Increase melos concurrency to avoid Codex timeout
CharlVS 8025852
ci: further parallelisation
CharlVS d7dcb80
fix(withdrawal-manager): use legacy RPCs for tendermint withdrawals (…
takenagain 1291dfc
fix(rpc-password-generator): update password validation to match KDF …
takenagain 41b554d
fix(fee-info): update tendermint, erc20, and qrc20 `fee_details` resp…
takenagain 227da80
init(dd): Init Dex Dungeon project
CharlVS fd2737e
chore(deps): Upgrade packages
CharlVS 4ecbdab
feat(withdraw): add ibc source channel parameter (#63)
takenagain e9ee983
chore: upgrade flutter pacakges for Flutter update
CharlVS b590f6c
fix: Fix breaking dependency upgrades
CharlVS 9aa16b8
Fix CDN usage in GitHubFileDownloader (#65)
takenagain 85e4e04
update etherscan-proxy to v2 (#66)
smk762 e2561b3
chore: align dependency versions (#74)
CharlVS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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,4 @@ | ||
| { | ||
| "flutterSdkVersion": "stable", | ||
| "flavors": {} | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,194 @@ | ||
| name: Roll KDF Version | ||
|
|
||
| on: | ||
| schedule: | ||
| # Run daily at midnight (UTC) | ||
| - cron: "0 0 * * *" | ||
| workflow_dispatch: | ||
| inputs: | ||
| branch: | ||
| description: "Branch to check for rolls (dev or main)" | ||
| required: false | ||
| default: "" | ||
| type: string | ||
|
|
||
| jobs: | ||
| check-for-updates: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| has_updates: ${{ steps.check-updates.outputs.has_updates }} | ||
| branch: ${{ steps.determine-branch.outputs.branch }} | ||
| current_commit: ${{ steps.current-details.outputs.commit }} | ||
| new_commit: ${{ steps.check-updates.outputs.new_commit }} | ||
| source_urls: ${{ steps.get-source-urls.outputs.source_urls }} | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Dart SDK | ||
| uses: dart-lang/setup-dart@v1 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| cd packages/komodo_wallet_cli | ||
| dart pub get | ||
|
|
||
| - name: Determine branch from config | ||
| id: determine-branch | ||
| run: | | ||
| BRANCH=$(cat packages/komodo_defi_framework/app_build/build_config.json | jq -r '.api.branch') | ||
| # If workflow dispatch provided a branch, use that instead | ||
| if [[ "${{ github.event_name }}" == "workflow_dispatch" && -n "${{ github.event.inputs.branch }}" ]]; then | ||
| BRANCH="${{ github.event.inputs.branch }}" | ||
| fi | ||
| echo "Using branch: $BRANCH" | ||
| echo "branch=$BRANCH" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Get source URLs from config | ||
| id: get-source-urls | ||
| run: | | ||
| SOURCE_URLS=$(cat packages/komodo_defi_framework/app_build/build_config.json | jq -c '.api.source_urls') | ||
| echo "source_urls=$SOURCE_URLS" >> $GITHUB_OUTPUT | ||
| echo "Source URLs: $SOURCE_URLS" | ||
|
|
||
| - name: Get current commit details | ||
| id: current-details | ||
| run: | | ||
| COMMIT=$(cat packages/komodo_defi_framework/app_build/build_config.json | jq -r '.api.api_commit_hash') | ||
| echo "commit=$COMMIT" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Check for new commit | ||
| id: check-updates | ||
| run: | | ||
| BRANCH="${{ steps.determine-branch.outputs.branch }}" | ||
| CURRENT_COMMIT="${{ steps.current-details.outputs.commit }}" | ||
|
|
||
| # Get latest commit for the branch | ||
| TOKEN=${{ secrets.GITHUB_TOKEN }} | ||
| RESPONSE=$(curl -s -H "Authorization: token $TOKEN" \ | ||
| "https://api.github.com/repos/KomodoPlatform/komodo-defi-framework/commits/$BRANCH") | ||
| NEW_COMMIT=$(echo $RESPONSE | jq -r '.sha') | ||
|
|
||
| echo "Current commit: $CURRENT_COMMIT" | ||
| echo "Latest commit: $NEW_COMMIT" | ||
|
|
||
| if [[ "$CURRENT_COMMIT" != "$NEW_COMMIT" ]]; then | ||
| echo "New commit found!" | ||
| echo "has_updates=true" >> $GITHUB_OUTPUT | ||
| echo "new_commit=$NEW_COMMIT" >> $GITHUB_OUTPUT | ||
| else | ||
| echo "No updates available." | ||
| echo "has_updates=false" >> $GITHUB_OUTPUT | ||
| fi | ||
|
|
||
| roll-kdf-version: | ||
| needs: check-for-updates | ||
| if: ${{ needs.check-for-updates.outputs.has_updates == 'true' }} | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Dart SDK | ||
| uses: dart-lang/setup-dart@v1 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| cd packages/komodo_wallet_cli | ||
| dart pub get | ||
|
|
||
| - name: Create branch for roll | ||
| run: | | ||
| BRANCH="${{ needs.check-for-updates.outputs.branch }}" | ||
| NEW_COMMIT="${{ needs.check-for-updates.outputs.new_commit }}" | ||
| SHORT_COMMIT="${NEW_COMMIT:0:7}" | ||
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
| git config --global user.name "GitHub Actions" | ||
| git checkout -b kdf-roll/$BRANCH-$SHORT_COMMIT | ||
|
|
||
| - name: Roll KDF version | ||
| id: roll-version | ||
| run: | | ||
| BRANCH="${{ needs.check-for-updates.outputs.branch }}" | ||
| CURRENT_COMMIT="${{ needs.check-for-updates.outputs.current_commit }}" | ||
| NEW_COMMIT="${{ needs.check-for-updates.outputs.new_commit }}" | ||
| SOURCE_URLS='${{ needs.check-for-updates.outputs.source_urls }}' | ||
|
|
||
| echo "Running update_api_config tool..." | ||
| cd packages/komodo_wallet_cli | ||
| mkdir -p ../komodo_defi_framework/app_build/temp_downloads | ||
|
|
||
| # Try each source URL in order until one succeeds | ||
| SUCCESS=false | ||
| for SOURCE_URL in $(echo $SOURCE_URLS | jq -r '.[]'); do | ||
| echo "Trying source URL: $SOURCE_URL" | ||
|
|
||
| # Determine source type from URL | ||
| if [[ "$SOURCE_URL" == *"api.github.com"* ]]; then | ||
| SOURCE_TYPE="github" | ||
| else | ||
| SOURCE_TYPE="mirror" | ||
| fi | ||
|
|
||
| echo "Using source type: $SOURCE_TYPE" | ||
|
|
||
| # Try roll with this source | ||
| if dart bin/update_api_config.dart \ | ||
| --branch "$BRANCH" \ | ||
| --source "$SOURCE_TYPE" \ | ||
| --config ../komodo_defi_framework/app_build/build_config.json \ | ||
| --output-dir ../komodo_defi_framework/app_build/temp_downloads \ | ||
| --verbose; then | ||
|
|
||
| echo "Successfully rolled using $SOURCE_URL" | ||
| SUCCESS=true | ||
| break | ||
| else | ||
| echo "Failed to roll using $SOURCE_URL, trying next source..." | ||
| fi | ||
| done | ||
|
|
||
| if [ "$SUCCESS" = false ]; then | ||
| echo "All sources failed. Exiting with error." | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Commit changes | ||
| run: | | ||
| BRANCH="${{ needs.check-for-updates.outputs.branch }}" | ||
| NEW_COMMIT="${{ needs.check-for-updates.outputs.new_commit }}" | ||
| SHORT_COMMIT="${NEW_COMMIT:0:7}" | ||
|
|
||
| # Check if there are changes to commit | ||
| if git diff --quiet; then | ||
| echo "No changes to commit" | ||
| exit 0 | ||
| fi | ||
|
|
||
| git add packages/komodo_defi_framework/app_build/build_config.json | ||
| git commit -m "chore: roll KDF version to commit $SHORT_COMMIT for branch $BRANCH" | ||
| git push origin kdf-roll/$BRANCH-$SHORT_COMMIT | ||
|
|
||
| - name: Create Pull Request | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| BRANCH="${{ needs.check-for-updates.outputs.branch }}" | ||
| NEW_COMMIT="${{ needs.check-for-updates.outputs.new_commit }}" | ||
| SHORT_COMMIT="${NEW_COMMIT:0:7}" | ||
|
|
||
| PR_TITLE="chore: roll KDF version to commit $SHORT_COMMIT for branch $BRANCH" | ||
| PR_BODY="This PR rolls the KDF version to the latest commit ($SHORT_COMMIT) for the '$BRANCH' branch. | ||
|
|
||
| **Changes:** | ||
| - Rolled KDF version from \`${{ needs.check-for-updates.outputs.current_commit }}\` to \`$NEW_COMMIT\` | ||
|
|
||
| This PR was automatically generated by GitHub Actions." | ||
|
|
||
| gh pr create \ | ||
| --title "$PR_TITLE" \ | ||
| --body "$PR_BODY" \ | ||
| --base "$BRANCH" \ | ||
| --head "kdf-roll/$BRANCH-$SHORT_COMMIT" | ||
|
Comment on lines
+86
to
+194
Check warningCode scanning / CodeQL Workflow does not contain permissions
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}
|
||
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.
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.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions