mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
New versions (#1312)
* New versions Fix issues with Monero.com * Add sending for Solana tokens exchanges * Add default keyword for P2WPKH [skip ci] * chore: Switch solana commitment to confirmed to reduced blockhash expiration (#1313) * Modify test workflow to send arm64-v8a build only * Fix workflow build path * Remove unnecessary reverse of txId * Show case sensitive evm wallet address * Revert default Cake Theme add custom package id for test builds * Fix workflow script * Fix workflow * hash branch name * hash branch name * Update versions * Add user image to Nostr Add fetching address from text for tokens * Fix test app package id * fix: Solana message improvement (#1316) --------- Co-authored-by: Adegoke David <64401859+Blazebrain@users.noreply.github.com>
This commit is contained in:
parent
10fd32fb2e
commit
c7deeaea9b
28 changed files with 186 additions and 138 deletions
|
@ -61,6 +61,7 @@ Future<void> main(List<String> args) async {
|
|||
Future<void> generateBitcoin(bool hasImplementation) async {
|
||||
final outputFile = File(bitcoinOutputPath);
|
||||
const bitcoinCommonHeaders = """
|
||||
import 'package:cw_core/receive_page_option.dart';
|
||||
import 'package:cw_core/unspent_transaction_output.dart';
|
||||
import 'package:cw_core/wallet_credentials.dart';
|
||||
import 'package:cw_core/wallet_info.dart';
|
||||
|
@ -70,7 +71,8 @@ import 'package:cw_core/unspent_coins_info.dart';
|
|||
import 'package:cw_core/wallet_service.dart';
|
||||
import 'package:cake_wallet/view_model/send/output.dart';
|
||||
import 'package:cw_core/wallet_type.dart';
|
||||
import 'package:hive/hive.dart';""";
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:bitcoin_base/bitcoin_base.dart';""";
|
||||
const bitcoinCWHeaders = """
|
||||
import 'package:cw_bitcoin/bitcoin_receive_page_option.dart';
|
||||
import 'package:cw_bitcoin/electrum_wallet.dart';
|
||||
|
@ -83,7 +85,6 @@ 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_bitcoin/litecoin_wallet_service.dart';
|
||||
import 'package:bitcoin_base/bitcoin_base.dart';
|
||||
import 'package:mobx/mobx.dart';
|
||||
""";
|
||||
const bitcoinCwPart = "part 'cw_bitcoin.dart';";
|
||||
|
@ -143,8 +144,9 @@ abstract class Bitcoin {
|
|||
TransactionPriority getLitecoinTransactionPrioritySlow();
|
||||
|
||||
Future<void> setAddressType(Object wallet, dynamic option);
|
||||
BitcoinReceivePageOption getSelectedAddressType(Object wallet);
|
||||
List<BitcoinReceivePageOption> getBitcoinReceivePageOptions();
|
||||
ReceivePageOption getSelectedAddressType(Object wallet);
|
||||
List<ReceivePageOption> getBitcoinReceivePageOptions();
|
||||
BitcoinAddressType getBitcoinAddressType(ReceivePageOption option);
|
||||
}
|
||||
""";
|
||||
|
||||
|
@ -906,6 +908,7 @@ import 'package:cw_core/wallet_credentials.dart';
|
|||
import 'package:cw_core/wallet_info.dart';
|
||||
import 'package:cw_core/wallet_service.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:solana/solana.dart';
|
||||
|
||||
""";
|
||||
const solanaCWHeaders = """
|
||||
|
@ -916,7 +919,6 @@ import 'package:cw_solana/solana_wallet_service.dart';
|
|||
import 'package:cw_solana/solana_transaction_info.dart';
|
||||
import 'package:cw_solana/solana_transaction_credentials.dart';
|
||||
import 'package:cw_solana/solana_wallet_creation_credentials.dart';
|
||||
import 'package:solana/solana.dart';
|
||||
""";
|
||||
const solanaCwPart = "part 'cw_solana.dart';";
|
||||
const solanaContent = """
|
||||
|
@ -944,10 +946,10 @@ abstract class Solana {
|
|||
List<OutputInfo> outputs, {
|
||||
required CryptoCurrency currency,
|
||||
});
|
||||
List<SPLToken> getSPLTokenCurrencies(WalletBase wallet);
|
||||
List<CryptoCurrency> getSPLTokenCurrencies(WalletBase wallet);
|
||||
Future<void> addSPLToken(WalletBase wallet, CryptoCurrency token);
|
||||
Future<void> deleteSPLToken(WalletBase wallet, CryptoCurrency token);
|
||||
Future<SPLToken?> getSPLToken(WalletBase wallet, String contractAddress);
|
||||
Future<CryptoCurrency?> getSPLToken(WalletBase wallet, String contractAddress);
|
||||
|
||||
CryptoCurrency assetOfTransaction(WalletBase wallet, TransactionInfo transaction);
|
||||
double getTransactionAmountRaw(TransactionInfo transactionInfo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue