content: // import 'package:lwk/src/generated/bridge_definitions.dart';
  // import 'package:lwk/src/utils/loader.dart';
  // import 'package:test/test.dart';
  
  // void main() {
  //   group('Wallet', () {
  //     test('Wallet Flow', () async {
  //       const mnemonic =
  //           "bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon";
  //       const network = Network.Testnet;
  //       const electrumUrl = 'blockstream.info:465';
  //       const dbPath = '/tmp/lwk-dart';
  //       final desc = await ffi.newDescriptorStaticMethodApi(
  //           network: network, mnemonic: mnemonic);
  //       final walletId = await ffi.newWalletStaticMethodApi(
  //         network: network,
  //         dbPath: dbPath,
  //         descriptor: desc,
  //       );
  //       print(walletId);
  
  //       await ffi.syncStaticMethodApi(
  //           electrumUrl: electrumUrl, walletId: walletId);
  //       final address =
  //           await ffi.addressLastUnusedStaticMethodApi(walletId: walletId);
  //       print('$address');
  
  //       final balance = await ffi.balanceStaticMethodApi(walletId: walletId);
  //       print('$balance');
  
  //       final txs = await ffi.txsStaticMethodApi(walletId: walletId);
  //       for (var tx in txs) {
  //         print(tx.kind);
  //         // print('${tx.amount}');
  //         print(tx.txid);
  //         print('${tx.outputs}');
  //         print(tx.timestamp);
  //         print('---------------------------');
  //       }
  //       const outAddress =
  //           "tlq1qqt4hjkl6sug5ld89sdaekt7ew04va8w7c63adw07l33vcx86vpj5th3w7rkdnckmfpraufnnrfcep4thqt6024phuav99djeu";
  //       const outAmount = 1000;
  //       const fee = 300.0;
  //       final pset = await ffi.buildLbtcTxStaticMethodApi(
  //           walletId: walletId,
  //           sats: outAmount,
  //           outAddress: outAddress,
  //           absFee: fee);
  
  //       final decoded =
  //           await ffi.decodeTxStaticMethodApi(walletId: walletId, pset: pset);
  //       print('------------CONFIRM TX---------------');
  //       print('Fee: ${decoded.fee}');
  //       print('Balances: ${decoded.balances}');
  //       print('-------------------------------------');
  
  //       final signedTxBytes = await ffi.signTxStaticMethodApi(
  //           walletId: walletId, network: network, pset: pset, mnemonic: mnemonic);
  //       final txid = await ffi.broadcastTxStaticMethodApi(
  //           electrumUrl: electrumUrl, txBytes: signedTxBytes);
  //       print(txid);
  //     });
  //   });
  // }
  