Skip to content
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

feat: cardano wallet api #522

Merged
merged 9 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .config/dictionaries/project.dic
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,5 @@ xctest
xctestrun
xcworkspace
yoroi
multiasset
unawaited
12 changes: 11 additions & 1 deletion catalyst_voices/lib/app/view/app_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,17 @@ final class _AppState extends State<App> {
}

Future<void> _init() async {
await Dependencies.instance.init();
try {
await Dependencies.instance.init();
} catch (error, stackTrace) {
// TODO(dtscalac): FutureBuilder that uses this future silences all
// errors, replace it here with proper logging solution.
FlutterError.dumpErrorToConsole(
FlutterErrorDetails(exception: error, stack: stackTrace),
);

rethrow;
}
}

List<BlocProvider> _multiBlocProviders() {
Expand Down
14 changes: 10 additions & 4 deletions catalyst_voices/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ environment:
dependencies:
animated_text_kit: ^4.2.2
animations: ^2.0.11
catalyst_cardano:
path: ../catalyst_voices_packages/catalyst_cardano/catalyst_cardano
catalyst_cardano_serialization:
path: ../catalyst_voices_packages/catalyst_cardano_serialization
catalyst_cardano_web:
path: ../catalyst_voices_packages/catalyst_cardano/catalyst_cardano_web
catalyst_voices_assets:
path: ./packages/catalyst_voices_assets
catalyst_voices_blocs:
Expand All @@ -30,7 +34,9 @@ dependencies:
path: ./packages/catalyst_voices_view_models
flutter:
sdk: flutter
flutter_adaptive_scaffold: ^0.1.7+2
# TODO(dtscalac): allow newer versions when we migrate to flutter 3.22.x,
# the package already uses APIs from 3.22.x which are not available in current (3.19.x) flutter
flutter_adaptive_scaffold: 0.1.10+2
flutter_bloc: ^8.1.3
flutter_localized_locales: ^2.0.5
flutter_web_plugins:
Expand All @@ -46,9 +52,9 @@ dev_dependencies:
build_verify: ^3.1.0
catalyst_analysis:
git:
url: https://github.com/input-output-hk/catalyst-voices.git
path: catalyst_voices_packages/catalyst_analysis
ref: 3431f7b
url: https://github.com/input-output-hk/catalyst-voices.git
path: catalyst_voices_packages/catalyst_analysis
ref: 3431f7b
flutter_test:
sdk: flutter
go_router_builder: ^2.4.1
Expand Down
1 change: 1 addition & 0 deletions catalyst_voices/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

<title>Catalyst Voices</title>
<link rel="manifest" href="manifest.json">
<script type="module" src="/assets/packages/catalyst_cardano_web/assets/js/catalyst_cardano.js"></script>
</head>

<body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# 1.0.0
# 0.1.0

* Initial release.
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# catalyst_cardano

## TODO(dtscalac): document plugin setup

* This line is needed in index.html:
* `<script type="module" src="/assets/packages/catalyst_cardano_web/assets/js/catalyst_cardano.js"></script>`
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# 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/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/

# 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: "300451adae589accbece3490f4396f10bdf15e6e"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 300451adae589accbece3490f4396f10bdf15e6e
base_revision: 300451adae589accbece3490f4396f10bdf15e6e
- platform: web
create_revision: 300451adae589accbece3490f4396f10bdf15e6e
base_revision: 300451adae589accbece3490f4396f10bdf15e6e

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# catalyst_cardano_example

Demonstrates usage of catalyst_cardano plugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
include: package:catalyst_analysis/analysis_options.1.0.0.yaml

analyzer:
exclude: [
build/**,
lib/*.g.dart,
lib/generated/**
]

linter:
rules:
public_member_api_docs: false
Loading
Loading