Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
240 commits
Select commit Hold shift + click to select a range
7d5553c
MVP PoC
CharlVS Jul 30, 2024
3d05da8
Refactor for web support
CharlVS Aug 1, 2024
a4e00b5
Add automated build system
CharlVS Aug 1, 2024
a95b45f
Init `komodo_wallet_cli` package
CharlVS Aug 1, 2024
403c734
Initial version with macOS and web support
CharlVS Aug 8, 2024
bdcb7b5
Add RPC calls
CharlVS Aug 8, 2024
1ab3cb7
Re-organise komodo_defi_framework as a sub-package
CharlVS Aug 8, 2024
97259a5
Placeholder project README
CharlVS Aug 8, 2024
4e13d36
Bump minimum Flutter version to support automated builds
CharlVS Aug 8, 2024
132e1fb
Init entry point package
CharlVS Aug 8, 2024
1884edc
Init package for common types
CharlVS Aug 8, 2024
c48f32d
Update init project template info
CharlVS Aug 8, 2024
328cb98
Init package for RPC methods classes
CharlVS Aug 8, 2024
61d1c8d
Introduce RPC methods package
CharlVS Aug 8, 2024
55962cd
Minor documentation/renaming
CharlVS Aug 8, 2024
a86c019
Init symbol converter package
CharlVS Aug 9, 2024
b207f1a
Init UI package
CharlVS Aug 9, 2024
4d2558f
Change UI package name
CharlVS Aug 9, 2024
e37a609
Init widget package story book catalog
CharlVS Aug 9, 2024
343e7a0
Implement cross-platform native/wasm local+remote KDF
CharlVS Aug 14, 2024
eb77c08
Add HTTPS warnings in example app
CharlVS Aug 14, 2024
b7d6fd1
Change RPC input button to shortcut to new RPC playground
CharlVS Aug 14, 2024
e55f385
Fix upgraded linter errors
CharlVS Aug 14, 2024
ceb1177
Rename ‘web’ references to ‘wasm’
CharlVS Aug 14, 2024
d3e1e07
QoL improvements and remove hard-coded example RPC pass
CharlVS Aug 14, 2024
907f9f6
Example bugfix and add repository URL
CharlVS Aug 14, 2024
0771444
Re-add proxy for web
CharlVS Aug 14, 2024
0de9210
Fix example app bug
CharlVS Aug 14, 2024
18d30d3
Allow changing config while running
CharlVS Aug 14, 2024
ac043d1
Init local authentication package
CharlVS Aug 15, 2024
0cb0c64
Komodo Defi JSON utils consolidation
CharlVS Aug 15, 2024
dd8c383
Update README.md
CharlVS Aug 15, 2024
3c34bf6
Fix README URL
CharlVS Aug 15, 2024
9e17296
Update README.md
CharlVS Aug 15, 2024
dbf809a
Update proxy
CharlVS Aug 15, 2024
ee0c1da
Update README.md
CharlVS Aug 15, 2024
a056432
Init auth example app
CharlVS Aug 17, 2024
66c4193
Add RPC Requests: GUI Storage
CharlVS Aug 18, 2024
66e7f58
Update build config to the latest KDF API
CharlVS Aug 22, 2024
84b0af8
Add dragon logs as a submodule
CharlVS Aug 22, 2024
94c88ec
Revert "Add dragon logs as a submodule"
CharlVS Aug 22, 2024
378e048
Major changes and additions
CharlVS Aug 22, 2024
f8f9e2d
Lint fixes/formatting
CharlVS Aug 22, 2024
99ac066
Fix linter-fixes
CharlVS Aug 22, 2024
1b6255d
Add more verbose logging to defi api build step with levels
takenagain Aug 22, 2024
e1ed6dd
Create output directory if it does not exist in zip extraction step
takenagain Aug 22, 2024
370b45c
Add more logging and response status code checks
takenagain Aug 23, 2024
ecea7bf
Resolve relative paths and check if dirs match
takenagain Aug 23, 2024
c9f96d8
Add github api provider with token and build config model
takenagain Aug 26, 2024
3a2609a
Add more logging and fix analyser warnings
takenagain Aug 28, 2024
b4dc987
Merge pull request #1: Add authentication headers to GitHub api requests
CharlVS Sep 2, 2024
a3bb681
bulid(build_transformer): add very good analysis linting (#2)
takenagain Sep 23, 2024
df0cd24
MVP auth SDK and other progress
CharlVS Sep 2, 2024
ff6bc83
fix(build_transformer): npm error when building without `package.json…
takenagain Sep 24, 2024
388f042
Upgrade to latest stable Flutter `3.24.3`
CharlVS Sep 24, 2024
dad1fc7
Implement KDF RPC locking
CharlVS Sep 26, 2024
cc9061e
Use absolute nodejs path on Windows (#4)
takenagain Sep 27, 2024
09fe7da
Fix macOS launch
CharlVS Sep 30, 2024
9a95dd9
Init Komodo coins package
CharlVS Sep 30, 2024
dbc10cc
PoC with coin activation working
CharlVS Oct 10, 2024
7f4affb
Abstract out activation status to handle internally
CharlVS Oct 14, 2024
da1e655
fix(build-transformer): ios xcode errors (#6)
takenagain Oct 16, 2024
aed015f
build step: fetch_at_build_enabled for fetch coins (#5)
takenagain Oct 16, 2024
1427b0e
Initial multi/HD address support
CharlVS Oct 17, 2024
5b3b418
Implement and create example for multi-address SDK
CharlVS Oct 17, 2024
cfb9c16
fix(komodo-defi-framework): normalise kdf startup process between nat…
takenagain Oct 21, 2024
000d814
Rework to support both HD and non-HD launch mode
CharlVS Oct 22, 2024
9d9bd67
End-to-end HD wallet support
CharlVS Oct 25, 2024
5fb13fb
Update KDF version
CharlVS Oct 25, 2024
fe9b8ea
Remove unsafe context lookup from example app
CharlVS Oct 25, 2024
4111565
fix(bug): Fix JSON list parsing
CharlVS Oct 28, 2024
683638d
fix(komodo-defi-framework): export coin icons (#8)
takenagain Oct 29, 2024
7bc84e3
feature(build-transformer): concurrent coin asset download (#9)
takenagain Nov 4, 2024
3b2518f
Update README.md
CharlVS Nov 4, 2024
8954d59
fix auth register function (#10)
takenagain Nov 5, 2024
b34e1ad
Update KDF version
CharlVS Nov 6, 2024
a27595d
Expand and enhance activation system
CharlVS Nov 6, 2024
21022cf
Re-generate indexes
CharlVS Nov 6, 2024
b351e35
Full coverage for protocol activations
CharlVS Nov 11, 2024
1134b8f
Bug - fix missed auth change
CharlVS Nov 12, 2024
c08446c
Fix ERC requests and apply Dart fix/format
CharlVS Nov 12, 2024
91feafb
Update KDF version
CharlVS Nov 12, 2024
7cd5aad
Bug - Filter out non-WSS electrums on web
CharlVS Nov 14, 2024
46f81fb
fix(kdf_operations): reduce wasm log verbosity in release mode (#11)
takenagain Nov 14, 2024
53103fe
fix(auth_service): hd wallet registration deadlock (#12)
takenagain Nov 15, 2024
1a54425
feat(transactions) - Initial transaction history implementation (#13)
CharlVS Nov 19, 2024
8fbf81d
Implement SDK constructor from existing KDF instance
CharlVS Nov 21, 2024
bd4cb91
Fix SDK late parameter issue
CharlVS Nov 21, 2024
5a3b8fd
feat(withdrawals): Implement HD withdrawals
CharlVS Nov 21, 2024
497c9ad
Re-generate broken indexes
CharlVS Nov 22, 2024
63458cf
Ci testing
CharlVS Nov 22, 2024
6254110
Merge branch 'main' into dev
CharlVS Nov 22, 2024
b848476
Hot fix: Add pubkey property needed for GUI
CharlVS Nov 26, 2024
b1d0d33
GUI - Add a method for storing active user metadata
CharlVS Nov 26, 2024
23ff41d
Update KDF to latest release version
CharlVS Nov 27, 2024
2212b06
fix(kdf-wasm-ops): response type conversion and migrate to js_interop…
takenagain Dec 2, 2024
60d354d
Bug(import): Fix incorrect encrypted seed parsing
CharlVS Dec 2, 2024
488aa1e
Add necessary fields to `Transaction` type
CharlVS Dec 2, 2024
33611b7
Refactor(tx history): Fix misrepresented fees field
CharlVS Dec 2, 2024
c565a40
Bug(wasm): remove validation for legacy methods
CharlVS Dec 2, 2024
feb1587
remove legacy coin model from types index (#15)
takenagain Dec 3, 2024
09a1820
Add additional transaction balance change details
CharlVS Dec 3, 2024
02ec110
Add `coin` to FeeInfo
CharlVS Dec 3, 2024
f6cb661
Bump down min `equatable` version
CharlVS Dec 4, 2024
d397c3c
Misc formatting fixes
CharlVS Dec 4, 2024
185fb35
ci(example): WIP setup previews for SDK example app
CharlVS Dec 5, 2024
63dbdbd
Ci fixes
CharlVS Dec 5, 2024
94b050b
fix(example): encrypted seed import (#16)
takenagain Dec 5, 2024
10a784a
fix(debugging): Avoid unnecessary exceptions
CharlVS Dec 9, 2024
2707fc8
bug(tx): Fix broken legacy UTXO tx history
CharlVS Dec 9, 2024
0643805
feat(asset): Add legacy asset transition helpers
CharlVS Dec 12, 2024
6ba773b
Bug(assets): Fix missing export for legacy extension
CharlVS Dec 13, 2024
19b9e94
feat(HD): Implement GUI utility for asset status
CharlVS Dec 16, 2024
de801c4
Amend previous commit
CharlVS Dec 16, 2024
e51e758
fix(auth_service): legacy wallet bip39 validation (#18)
takenagain Dec 20, 2024
b19bcd9
Perf: migrate packages to Dart workspace
CharlVS Dec 24, 2024
a11acd0
Revert "Perf: migrate packages to Dart workspace"
CharlVS Jan 2, 2025
7c0c5d0
(bug): Fix broken ERC tx fetching
CharlVS Jan 9, 2025
415baea
fix(activation): Fix eth activation parsing exception
CharlVS Jan 13, 2025
6c7cb9b
feat(builds): Add regex pattern support for KDF download
CharlVS Jan 14, 2025
87ed8da
chore(flutter): Apply iOS changes for flutter upgrade
CharlVS Jan 14, 2025
e37a463
refactor(types): Restructure type packages
CharlVS Jan 17, 2025
f4edd33
fix(types): Make types index private
CharlVS Jan 17, 2025
d5fe417
chore(ui): Scaffold out UI package structure
CharlVS Jan 22, 2025
03c892a
docs(ui): Document UI package structure
CharlVS Jan 22, 2025
587eae3
chore(deps): update flutter_secure_storage to v9.2.4 (#20)
takenagain Jan 23, 2025
729297f
feat(ui): Migrate withdrawal-related widgets from KW
CharlVS Jan 30, 2025
e8d9e1f
feat(types): Iterate on withdrawal-related types
CharlVS Jan 30, 2025
d9beea3
feat(UI): Migrate QR code scanner from KW
CharlVS Jan 30, 2025
cd9ff8b
bug(tx): Fix and optimise transaction history SDK
CharlVS Jan 30, 2025
1f375dd
feat(build): Add regex support for KDF download
CharlVS Jan 30, 2025
4d09e5e
feat(sdk): Implement remaining SDK withdrawal functionality
CharlVS Jan 30, 2025
a3bfd84
chore(deps): update flutter_secure_storage to v9.2.4 (#20)
takenagain Jan 23, 2025
2bf2566
docs(remote): Initial komodo_defi_remote package implementation plan
CharlVS Jan 31, 2025
ce30f8c
docs(workers): document KDF workers proposal and v2 remote
CharlVS Feb 1, 2025
9c75bb7
feat(sdk): Multi-SDK instance support
CharlVS Feb 3, 2025
a5aecee
fix(multi-sdk): Fix example app withdrawals SDK instance
CharlVS Feb 4, 2025
b6fdae5
fix(kdf): Update KDF for HD withdrawal bug
CharlVS Feb 4, 2025
afcdfd9
fix(asset-manager): add missing ticker index initialization (#24)
takenagain Feb 5, 2025
0d2f45a
refactor(build_transformer): move api release download and extraction…
takenagain Feb 6, 2025
02e3ea9
fix(assets): Add ticker-safe asset lookup
CharlVS Feb 7, 2025
204fdfe
fix(transaction-history): non-hd transaction history support (#25)
takenagain Feb 8, 2025
0a210cf
feat: custom token import (#22)
takenagain Feb 10, 2025
3b97036
build: fix desktop and mobile builds (#26)
takenagain Feb 12, 2025
8d0a162
fix(transaction-storage): transaction streaming errors and hanging du…
takenagain Feb 13, 2025
6ce8fce
chore(flutter): Upgrade Flutter and dependencies
CharlVS Feb 15, 2025
9b5df8f
build: rename libraries from 'mm2' to 'kdf' (#29)
takenagain Feb 16, 2025
674c1d1
feat(hd): HD withdrawal supporting widgets and (WIP) multi-instance e…
CharlVS Feb 17, 2025
1a64432
fix(transaction-history): EVM StackOverflow exception (#30)
takenagain Feb 17, 2025
5960abf
chore(deps): update KDF checksums (#31)
takenagain Feb 17, 2025
1854999
fix(example): Fix registration form regression
CharlVS Feb 17, 2025
7712c2b
fix(local-exe-ops): local executable startup and registration (#33)
takenagain Feb 24, 2025
96414c3
bug(auth): Fix registration failing on Windows and Windows web builds…
CharlVS Feb 25, 2025
1ccb3f0
chore(deps): kdf 2.4.0 update (#32)
takenagain Feb 25, 2025
af79b7d
bug(windows): Fix incompatibility between Nvidia Windows drivers and …
CharlVS Mar 2, 2025
2a9d704
chore(deps): kdf 2.4.0 update from `dev` (#36)
takenagain Mar 4, 2025
1bd8e52
fix(native-ops): mobile kdf startup config requires dbdir parameter (…
takenagain Mar 4, 2025
67289af
feat(ci/kdf): Add script to update API build config
CharlVS Mar 5, 2025
ad6d203
feat: migrate komodo_cex_market_data from komod-wallet (#37)
takenagain Mar 8, 2025
c96a681
add(types): Add missing asset-related fields needed by GUI
CharlVS Mar 5, 2025
84deffd
add(ui_kit): Rework TrendPercentageText to be more re-usable
CharlVS Mar 5, 2025
237e235
feat(sdk): Balance manager WIP
CharlVS Mar 9, 2025
7578041
feat(dev): Install `melos`
CharlVS Mar 10, 2025
ab3526a
chore(cleanup): Delete widgetbook
CharlVS Mar 14, 2025
fe0f263
fix(deps): Remove `postman_collection` and refactor
CharlVS Mar 14, 2025
8dd8a76
chore(fix): Fix invalid checked-in file name for Windows
CharlVS Mar 16, 2025
0bc828a
feat(signing): Implement message signing + format
CharlVS Mar 15, 2025
26a7316
chore(merge): Re-generate files and resolve merge errors
CharlVS Mar 16, 2025
75bead6
refactor(sdk): implement dependency injection with GetIt container
CharlVS Mar 17, 2025
0d2ad08
feat(sdk): redesign balance manager with improved API and reliability
CharlVS Mar 17, 2025
e97f2c4
refactor(sdk): restructure activation and asset management flow
CharlVS Mar 17, 2025
318116e
feat(ui): redesign core input components with improved UX
CharlVS Mar 17, 2025
e4dbffe
feat(ui): enhance withdrawal form components with better validation a…
CharlVS Mar 17, 2025
1132f59
refactor(sdk): update transaction history manager for new architecture
CharlVS Mar 17, 2025
ef1e33a
refactor(sdk): improve transaction history and withdrawal managers
CharlVS Mar 17, 2025
debadb9
feat(types): add new models and utility classes for reactive data han…
CharlVS Mar 17, 2025
32e45fe
build: update build configuration for multiple platforms
CharlVS Mar 17, 2025
6283d03
build(deps): update dependencies and build configurations
CharlVS Mar 17, 2025
86ed533
feat(operations): update KDF operations interface and implementations
CharlVS Mar 17, 2025
e919f10
feat(auth): enhance local authentication and secure storage
CharlVS Mar 17, 2025
54ded02
feat(ui): update asset components and SDK integrations
CharlVS Mar 17, 2025
b59e561
feat(transactions): add activations and withdrawal priority features
CharlVS Mar 17, 2025
e1f1941
refactor(ui): improve balance text widget implementation
CharlVS Mar 17, 2025
15f314b
feat(error-handling): enhance balance and address loading error states
CharlVS Mar 17, 2025
00dd545
feat(ui): improve asset list and authentication UI
CharlVS Mar 17, 2025
e9b718e
refactor: improve code quality and documentation
CharlVS Mar 17, 2025
6f92e02
build: fix kdf copy step error on windows and remove appdata copy ste…
takenagain Mar 18, 2025
1d88178
feat: enhance balance and market data management in SDK
CharlVS Mar 19, 2025
999ef3b
chore(sdk): Roll KDF SDK version
CharlVS Mar 19, 2025
d8a095e
chore(indexes): Fix Dart formatting issue in index configs
CharlVS Mar 19, 2025
7eefe4b
chore(deps): bump KDF commit hash (#42)
takenagain Mar 19, 2025
2d41133
refactor(komodo_defi_framework): add static, global log verbosity fla…
takenagain Mar 19, 2025
a89e51e
fix(cli): Fix encoding for KDF config updater script
CharlVS Mar 21, 2025
4ae7d0d
feat(source-address-field): add show balance toggle (#43)
takenagain Mar 25, 2025
7948461
chore: Format build config and migrate git to hosted
CharlVS Mar 27, 2025
15abce0
fix(types): Fix Sub-class naming
CharlVS Mar 27, 2025
58140bf
feat(auth): Add update password feature
CharlVS Mar 28, 2025
97b7202
Chore: Init compliance console project
CharlVS Mar 29, 2025
36039d5
fix(kdf): Rebuild KDF checksums
CharlVS Mar 30, 2025
d9d9db4
feat(KDF): Make provision for HD mode signing
CharlVS Mar 30, 2025
b1d58f3
fix(withdraw): update amount when isMaxAmount and show dropdown icon …
takenagain Apr 2, 2025
648a12b
chore(deps): Final deps upgrade
CharlVS Apr 2, 2025
6fdcc0e
fix(rpc): Remove flutter dependency from RPC package
CharlVS Apr 2, 2025
67e531e
fix(native-auth-ops): remove exceptions from logs in KDF restart func…
takenagain Apr 7, 2025
bb77d30
feat: runtime coin updates (#38)
takenagain Apr 7, 2025
dbcd459
feat(signing): Add message signing prefix to models
CharlVS Apr 7, 2025
55ed32c
fix(ui): convert error display to stateful widget to toggle detailed …
takenagain Apr 10, 2025
99eec10
feat: nft enable RPC and activation params (#39)
takenagain Apr 10, 2025
b1ca1e7
chore(kdf): Roll SDK version
CharlVS Apr 10, 2025
47435a1
build(kdf): update platform checksums (#47)
takenagain Apr 10, 2025
db94fb4
chore(deps): upgrade remaining deps (#48)
takenagain Apr 14, 2025
7755141
fix(auth): Translate KDF errors to auth errors
CharlVS Apr 15, 2025
9786eb7
feat(auth): Implement new exceptions for update password RPC
CharlVS Apr 15, 2025
0e5b1f8
chore(deps): switch back to KDF dev branch and update checksums (#49)
takenagain Apr 16, 2025
f001976
chore(deps): bump KDF hash and checksums (#50)
takenagain Apr 16, 2025
810275b
feat(ui): Address and fee UI enhancements + formatting
CharlVS Apr 16, 2025
fd5232f
ci: add GitHub Actions workflow to roll KDF version automatically
CharlVS Apr 23, 2025
27fe9f1
chore: roll KDF version to commit 600ea71 for branch dev (#52)
github-actions[bot] Apr 23, 2025
51e4f0e
chore: roll KDF build
CharlVS Apr 24, 2025
a6ac41d
feat(playground): Auto-update KDF postman collection
CharlVS May 8, 2025
3d23a0f
chore(kdf): Roll KDF version to release v2.4.0-beta
CharlVS May 8, 2025
1c3d8cc
feat(playground): Playground fixes and enhancements
CharlVS May 9, 2025
9633d16
ci: Firebase deployments for example apps
CharlVS May 9, 2025
c9e3a84
Merge branch 'main' into dev
CharlVS May 9, 2025
48d8e48
ci: ci build scripts fixes
CharlVS May 9, 2025
9519157
feat(auth): allow weak password in auth options (#54)
takenagain May 12, 2025
46350cb
fix: breaking tendermint config changes and build transformer not usi…
takenagain May 16, 2025
6eb19be
ci: Increase melos concurrency to avoid Codex timeout
CharlVS May 20, 2025
8025852
ci: further parallelisation
CharlVS May 20, 2025
d7dcb80
fix(withdrawal-manager): use legacy RPCs for tendermint withdrawals (…
takenagain May 21, 2025
1291dfc
fix(rpc-password-generator): update password validation to match KDF …
takenagain May 21, 2025
41b554d
fix(fee-info): update tendermint, erc20, and qrc20 `fee_details` resp…
takenagain May 22, 2025
227da80
init(dd): Init Dex Dungeon project
CharlVS May 24, 2025
fd2737e
chore(deps): Upgrade packages
CharlVS May 24, 2025
4ecbdab
feat(withdraw): add ibc source channel parameter (#63)
takenagain May 27, 2025
e9ee983
chore: upgrade flutter pacakges for Flutter update
CharlVS May 28, 2025
b590f6c
fix: Fix breaking dependency upgrades
CharlVS May 28, 2025
9aa16b8
Fix CDN usage in GitHubFileDownloader (#65)
takenagain May 28, 2025
85e4e04
update etherscan-proxy to v2 (#66)
smk762 May 30, 2025
e2561b3
chore: align dependency versions (#74)
CharlVS Jun 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"flutterSdkVersion": "stable",
"flavors": {}
}
64 changes: 61 additions & 3 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,75 @@
branches:
- dev
jobs:
build_and_deploy:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
# - run: ci/pre_deploy.dart
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install Melos
run: dart pub global activate melos
- name: Bootstrap workspace
run: melos bootstrap
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.pub-cache
**/.dart_tool
**/.flutter-plugins
**/.flutter-plugins-dependencies
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-

build_and_deploy_playground:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install Melos
run: dart pub global activate melos
- name: Bootstrap workspace
run: melos bootstrap
- name: Run dry web build to generate assets (expected to fail)
run: cd playground && flutter build web --release || echo "Dry build completed (failure expected)"
- name: Build playground web
run: cd playground && flutter build web --release
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KOMODO_PLAYGROUND }}
channelId: live
projectId: komodo-playground
entryPoint: ./playground
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks

build_and_deploy_sdk_example:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install Melos
run: dart pub global activate melos
- name: Bootstrap workspace
run: melos bootstrap
- name: Build SDK example web
run: cd packages/komodo_defi_sdk/example && flutter build web --release
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KOMODO_DEFI_SDK }}
channelId: live
projectId: komodo-defi-sdk
entryPoint: ./packages/komodo_defi_sdk/example
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

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}
69 changes: 65 additions & 4 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,85 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
name: Deploy Playground to Firebase Hosting on PR
on: pull_request
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
setup:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
# - run: ci/pre_deploy.dart
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install Melos
run: dart pub global activate melos
- name: Bootstrap workspace
run: melos bootstrap
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.pub-cache
**/.dart_tool
**/.flutter-plugins
**/.flutter-plugins-dependencies
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-

build_and_preview_playground_preview:
needs: setup
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install Melos
run: dart pub global activate melos
- name: Bootstrap workspace
run: melos bootstrap
- name: Run dry web build to generate assets (expected to fail)
run: cd playground && flutter build web --release || echo "Dry build completed (failure expected)"
- name: Build playground web
run: cd playground && flutter build web --release
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KOMODO_PLAYGROUND }}
projectId: komodo-playground
entryPoint: ./playground
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks

build_and_preview_sdk_example_preview:
needs: setup
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install Melos
run: dart pub global activate melos
- name: Bootstrap workspace
run: melos bootstrap
- name: Run dry web build to generate assets (expected to fail)
run: cd packages/komodo_defi_sdk/example && flutter build web --release || echo "Dry build completed (failure expected)"
- name: Build SDK example web
run: cd packages/komodo_defi_sdk/example && flutter build web --release
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KOMODO_DEFI_SDK }}
projectId: komodo-defi-sdk
entryPoint: ./packages/komodo_defi_sdk/example
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks
96 changes: 94 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# First-party related
# As per Dart guidelines, we should ignore pubspec.lock files for packages.
packages/**/pubspec.lock # TODO: Get this to work.

# Miscellaneous
*.class
*.log
Expand All @@ -19,11 +23,99 @@ migrate_working_dir/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
.vscode/
.vs/

# Firebase extras
.firebase/

# Flutter/Dart/Pub related
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
/pubspec.lock
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
build/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/
contrib/coins_config.json
**/.plugin_symlinks/*

# Web related
web/dist/*.js
web/dist/*.wasm
web/dist/*LICENSE.txt
web/src/mm2/
web/src/kdf/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

# CI/CD Extras
demo_link
airdex-build.tar.gz
**/test_wallet.json
**/debug_data.json
**/config/firebase_analytics.json

# js
node_modules

assets/config/test_wallet.json
assets/**/debug_data.json
contrib/coins_config.json

# api native library
libmm2.a
libkdf.a
libmm2.dylib
libkdflib.a
libkdflib.dylib
windows/**/kdf.exe
linux/kdf/kdf
macos/kdf
**/.api_last_updated*
.venv/

# Android C++ files
**/.cxx

# Coins asset files
assets/config/coins.json
assets/config/coins_config.json
assets/config/coins_ci.json
assets/coin_icons/


# MacOS
# Flutter-related
**/Flutter/ephemeral/
**/Pods/
macos/Frameworks/*

# Xcode-related
**/xcuserdata/

# Flutter SDK
.fvm/
**.zip

key.txt
.firebaserc
firebase.json
*_combined.txt
# /packages/komodo_defi_framework/web/kdf

*.a
.transformer_invoker
39 changes: 0 additions & 39 deletions .metadata

This file was deleted.

Loading
Loading