diff --git a/cw_lightning/lib/lightning_receive_page_option.dart b/cw_lightning/lib/lightning_receive_page_option.dart new file mode 100644 index 000000000..fd2917a14 --- /dev/null +++ b/cw_lightning/lib/lightning_receive_page_option.dart @@ -0,0 +1,19 @@ +import 'package:cw_core/receive_page_option.dart'; + +class LightningReceivePageOption implements ReceivePageOption { + static const lightningOnchain = LightningReceivePageOption._('lightningOnchain'); + static const lightningInvoice = LightningReceivePageOption._('lightningInvoice'); + + const LightningReceivePageOption._(this.value); + + final String value; + + String toString() { + return value; + } + + static const all = [ + LightningReceivePageOption.lightningInvoice, + LightningReceivePageOption.lightningOnchain + ]; +} diff --git a/tool/configure.dart b/tool/configure.dart index 91cdfb94c..0fd217840 100644 --- a/tool/configure.dart +++ b/tool/configure.dart @@ -733,6 +733,7 @@ import 'package:cake_wallet/view_model/send/output.dart'; import 'package:cw_core/wallet_type.dart'; import 'package:hive/hive.dart'; import 'package:mobx/mobx.dart'; +import 'package:intl/intl.dart'; """; const lightningCWHeaders = """ import 'package:cw_bitcoin/electrum_wallet.dart'; @@ -744,6 +745,7 @@ import 'package:cw_bitcoin/bitcoin_amount_format.dart'; import 'package:cw_bitcoin/bitcoin_address_record.dart'; import 'package:cw_bitcoin/bitcoin_transaction_credentials.dart'; import 'package:cw_lightning/lightning_wallet_service.dart'; +import 'package:cw_lightning/lightning_receive_page_option.dart'; """; const lightningCwPart = "part 'cw_lightning.dart';"; const lightningContent = """