mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-14 09:14:05 +01:00
* fix android CI * feat: Add Robinhood Chain, all major flows done. minor issue now is our providers don't support it yet as its still pretty early, two weeks from launch * feat: Add Robinhood Chain, all major flows done. minor issue now is our providers don't support it yet as its still pretty early, two weeks from launch * Cleanup * auto-reformat * fix ui issue and contact listing for tokens * fix: missing icons and crash for fee priority in settings * chore: cleanup * fixes from feedbacks * fix: review issues and sync to latest dev feat: switch history api to etherscan, add history toggle to privacy settings, exclude robETH from exchange pickers, skip tokens discovery for chains that moralis hasn't indexed, add tests * fix: address Robinhood review comments * fix: show Solana token icons in history * fix: address review comments and default Robinhood to PublicNode * fix: revert filter and refuse unmapped networks in provider --------- Co-authored-by: Robert Malikowski <malikowskirobert@gmail.com>
43 lines
1007 B
Dart
43 lines
1007 B
Dart
import "package:cw_evm/clients/evm_chain_client.dart";
|
|
import "package:flutter/foundation.dart";
|
|
import "package:web3dart/web3dart.dart";
|
|
|
|
class RobinhoodClient extends EVMChainClient {
|
|
RobinhoodClient() : super(chainId: 4663);
|
|
|
|
@override
|
|
Transaction createTransaction({
|
|
required EthereumAddress from,
|
|
required EthereumAddress to,
|
|
required EtherAmount amount,
|
|
EtherAmount? maxPriorityFeePerGas,
|
|
Uint8List? data,
|
|
int? maxGas,
|
|
EtherAmount? gasPrice,
|
|
EtherAmount? maxFeePerGas,
|
|
int? nonce,
|
|
}) {
|
|
EtherAmount? finalGasPrice = gasPrice;
|
|
|
|
if (gasPrice == null && maxFeePerGas != null) {
|
|
finalGasPrice = maxFeePerGas;
|
|
}
|
|
|
|
return Transaction(
|
|
from: from,
|
|
to: to,
|
|
value: amount,
|
|
data: data,
|
|
maxGas: maxGas,
|
|
gasPrice: finalGasPrice,
|
|
nonce: nonce,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Uint8List prepareSignedTransactionForSending(Uint8List signedTransaction) => signedTransaction;
|
|
|
|
@override
|
|
int get chainId => 4663;
|
|
}
|