mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
tx-confirmation-options-on-dev [cw-1463] (#3289)
* add note and contact options to tx confirmation screen * fix closing animation for confirm sheet * fix note button for lightning * sizing fix * add local tx info for evm/sol/trx * fix for xmr/zec * merge * fixes
This commit is contained in:
@@ -143,6 +143,39 @@ class CWEVM extends EVM {
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
TransactionInfo getTransactionInfo(
|
||||
|
||||
{
|
||||
required String id,
|
||||
required int height,
|
||||
required BigInt ethAmount,
|
||||
required BigInt ethFee,
|
||||
required String tokenSymbol,
|
||||
int exponent = 18,
|
||||
required TransactionDirection direction,
|
||||
required bool isPending,
|
||||
required DateTime date,
|
||||
required int confirmations,
|
||||
String? to,
|
||||
String? from,
|
||||
String? evmSignatureName,
|
||||
String? contractAddress,
|
||||
required int chainId,
|
||||
}) =>
|
||||
EVMChainTransactionInfo(id: id,
|
||||
height: height,
|
||||
ethAmount: ethAmount,
|
||||
ethFee: ethFee,
|
||||
tokenSymbol: tokenSymbol,
|
||||
direction: direction,
|
||||
isPending: isPending,
|
||||
date: date,
|
||||
confirmations: confirmations,
|
||||
to: to,
|
||||
from: from,
|
||||
chainId: chainId);
|
||||
|
||||
@override
|
||||
int formatterEVMParseAmount(String amount) => EVMChainFormatter.parseEVMChainAmount(amount);
|
||||
|
||||
@@ -432,6 +465,13 @@ class CWEVM extends EVM {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
BigInt getPendingTransactionFee(PendingTransaction tx) => (tx as PendingEVMChainTransaction).fee;
|
||||
|
||||
@override
|
||||
String getPendingTransactionAmount(PendingTransaction tx) => (tx as PendingEVMChainTransaction).amount;
|
||||
|
||||
// Registry helper methods
|
||||
static final EvmChainRegistry _registry = EvmChainRegistry();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user