Skip to content
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
37 changes: 19 additions & 18 deletions assets/network_config.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"pubsub_port": "",
"pubsub_bind_address": "",
"bootstrap_addresses": [
"/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
"/ip4/104.236.179.241/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
"/ip4/128.199.219.111/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu",
"/ip4/104.236.76.40/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
"/ip4/178.62.158.247/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
"/ip6/2604:a880:1:20::203:d001/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
"/ip6/2400:6180:0:d0::151:6001/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu",
"/ip6/2604:a880:800:10::4a:5001/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
"/ip6/2a03:b0c0:0:1010::23:1001/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd"

],
"upnp_enabled": true,
"high_water": 300,
"low_water": 150
}
"pubsub_port": "",
"pubsub_bind_address": "",
"bootstrap_addresses": [
"/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
"/ip4/104.236.179.241/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
"/ip4/128.199.219.111/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu",
"/ip4/104.236.76.40/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
"/ip4/178.62.158.247/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
"/ip6/2604:a880:1:20::203:d001/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
"/ip6/2400:6180:0:d0::151:6001/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu",
"/ip6/2604:a880:800:10::4a:5001/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
"/ip6/2a03:b0c0:0:1010::23:1001/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd"
],
"upnp_enabled": true,
"high_water": 300,
"low_water": 150,
"port_seed": 40001,
"auto_dht": true
}
4 changes: 2 additions & 2 deletions assets/sgns_config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"net_id": 144,
"is_processor": true,
"node_type": "Light",
"subnet_id": 0,
"bootstrap_fullnodes": [
"/dns4/sg-fullnode-1.gnus.ai/tcp/40102/ipfs/12D3KooWRqFHPFz6YptGnt4wLEGsNuWuv5TLN7rdQ9CFJcbHCWZC"
],
"authorized_full_node": "8a33bdf1445a68736429d1773be8682362753a0efc6fb9d8b3e8dffe3b74fc91e26b203fd521547a5219eddf1d3ac51fd17a7646c9bca5ef065da131add4e5a2"
}
}
49 changes: 42 additions & 7 deletions lib/account/sdk_account_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ import 'package:genius_wallet/bloc/app_bloc.dart';
import 'package:genius_wallet/components/bottom_drawer/responsive_drawer.dart';
import 'package:genius_wallet/components/scaffold/scaffold_helper.dart';
import 'package:genius_wallet/theme/genius_wallet_colors.dart';
import 'package:genius_wallet/theme/genius_wallet_consts.dart';
import 'package:genius_wallet/utils/breakpoints.dart';
import 'package:genius_wallet/utils/wallet_utils.dart';
import 'package:qr_flutter/qr_flutter.dart';

/// A widget that shows the currently selected SDK account and opens a drawer
/// for managing SDK accounts (select, add, delete).
Expand Down Expand Up @@ -200,13 +202,46 @@ class SDKAccountManagerButton extends StatelessWidget {
child: Text('Set payout address'),
onPressed: () => _showSetPayoutAddressDialog(context),
),
if (mnemonic != null) MenuItemButton(
leadingIcon: const Icon(Icons.numbers),
child: Text("Copy mnemonic"),
onPressed: () => {
Clipboard.setData(ClipboardData(text: mnemonic))
},
),
if (mnemonic != null) ...[
MenuItemButton(
leadingIcon: const Icon(Icons.numbers),
child: Text("Copy mnemonic"),
onPressed: () => {
Clipboard.setData(ClipboardData(text: mnemonic)),
},
),
MenuItemButton(
leadingIcon: const Icon(Icons.qr_code),
child: Text("View mnemonic's QR"),
onPressed: () async => {
await showDialog<void>(
context: context,
builder: (ctx) => AlertDialog(
contentPadding: EdgeInsetsGeometry.all(16),
content: SizedBox(
width: GeniusBreakpoints.small * 0.5,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(
GeniusWalletConsts.borderRadiusCard,
),
color: Colors.white,
),
padding: EdgeInsets.all(4),
child: QrImageView(data: mnemonic),
),
),
actions: [
TextButton(
onPressed: () => Navigator.of(ctx).pop(),
child: const Text('Cancel'),
),
],
),
),
},
),
],
],
)
: IconButton(
Expand Down
4 changes: 1 addition & 3 deletions lib/components/desktop_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ class DesktopContainer extends StatelessWidget {
const Flexible(
child: SearchBar(
hintText: 'Search ...',
trailing: [
Icon(Icons.search, color: Colors.grey),
],
trailing: [Icon(Icons.search, color: Colors.grey)],
),
),
const SizedBox(width: 16),
Expand Down
4 changes: 3 additions & 1 deletion lib/components/toast/toast_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ class _AnimatedToastState extends State<_AnimatedToast>
child: Align(
alignment: isMobile ? Alignment.center : Alignment.topRight,
child: ConstrainedBox(
constraints: BoxConstraints(maxWidth: isMobile ? double.infinity : 600),
constraints: BoxConstraints(
maxWidth: isMobile ? double.infinity : 600,
),
child: SlideTransition(
position: _slide,
child: ToastWidget(
Expand Down
Loading
Loading