Skip to content

Commit

Permalink
Merge pull request #2060 from bonomat/feat/brag-the-bag
Browse files Browse the repository at this point in the history
feat: brag the bag
  • Loading branch information
bonomat authored Feb 25, 2024
2 parents e795b91 + 9da5762 commit 1184c02
Show file tree
Hide file tree
Showing 13 changed files with 602 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Feat(webapp): Let user manually sync wallet history.
- Feat(webapp): Allow to close or force-close a channel.
- Feat(app): Count pending but trusted utxos to wallet balance.
- Feat(mobile): Brag the bag: share your PnL as an image

## [1.8.11] - 2024-02-20

Expand Down
17 changes: 17 additions & 0 deletions mobile/assets/10101-qr-transparent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions mobile/assets/10101_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions mobile/assets/10101_logo_white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mobile/lib/common/domain/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Usd {

double asDouble() => _usd.toDouble();

Usd.fromDouble(double value) : _usd = Decimal.parse(value.toString());
Usd.parse(dynamic value) : _usd = Decimal.parse(value);

Usd.parseString(String? value) {
Expand Down
5 changes: 4 additions & 1 deletion mobile/lib/common/init_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:get_10101/common/application/lsp_change_notifier.dart';
import 'package:get_10101/common/dlc_channel_change_notifier.dart';
import 'package:get_10101/common/dlc_channel_service.dart';
import 'package:get_10101/common/domain/lsp_config.dart';
import 'package:get_10101/features/brag/github_service.dart';
import 'package:get_10101/features/trade/candlestick_change_notifier.dart';
import 'package:get_10101/features/trade/order_change_notifier.dart';
import 'package:get_10101/features/trade/position_change_notifier.dart';
Expand Down Expand Up @@ -45,6 +46,7 @@ List<SingleChildWidget> createProviders() {
const ChannelInfoService channelInfoService = ChannelInfoService();
var tradeValuesService = TradeValuesService();
const pollService = PollService();
const githubService = GitHubService();

var providers = [
ChangeNotifierProvider(create: (context) {
Expand All @@ -70,7 +72,8 @@ List<SingleChildWidget> createProviders() {
ChangeNotifierProvider(create: (context) => PollChangeNotifier(pollService)),
Provider(create: (context) => config),
Provider(create: (context) => channelInfoService),
Provider(create: (context) => pollService)
Provider(create: (context) => pollService),
Provider(create: (context) => githubService)
];
if (config.network == "regtest") {
providers.add(Provider(create: (context) => FaucetService()));
Expand Down
Loading

0 comments on commit 1184c02

Please sign in to comment.