Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
cdf032b
refactor(memory): memory usage improvements (#2098)
onur-ozkan May 7, 2024
9a82349
fix(utxo-swap): apply events occurred while taker down (#2114)
May 7, 2024
f4b2403
fix(eth): remove my_address from sign_and_send_transaction_with_keypa…
shamardy May 9, 2024
7f08cae
fix(tests): set txfee for some tbtc tests (#2116)
shamardy May 9, 2024
52326c4
feat(tendermint): pubkey-only activation and unsigned tx (#2088)
onur-ozkan May 14, 2024
29c48bb
fix(swap): use tmp file for swap and order files (#2118)
May 14, 2024
df6ab98
fix(p2pk): show and spend P2PK balance (#2053)
mariocynicys May 15, 2024
2bbb75c
fix(p2pk-tests): fix p2pk tests post merge (#2119)
shamardy May 17, 2024
fa71adb
feat(ETH): eip1559 gas fee estimator and rpcs (#2051)
May 20, 2024
13c6cef
fix(test): improve log wait condition to fix taker restart test (#2125)
May 23, 2024
b2019cb
fix(core): improve validation rules for table names (#2123)
onur-ozkan May 23, 2024
74bb53c
fix(core): tendermint withdraws on hd accounts (#2130)
onur-ozkan May 31, 2024
40ebe00
feat(tx-history): handle encoded transaction values (#2133)
onur-ozkan Jun 5, 2024
2e21532
fix(indexeddb): window usage in worker env (#2131)
borngraced Jun 5, 2024
01eb745
change erc20 ops gas limit back to 150k
Jun 7, 2024
7020714
add 'gas_limit' param into coins to override default eth gas limits
Jun 7, 2024
caa0275
fix fmt
Jun 7, 2024
3d056cd
refactor gas_limit override feat (eliminate duplicate code)
Jun 9, 2024
2dc40ec
refactor gas_limit override (more)
Jun 9, 2024
36f0601
refactor gas limit defaults
Jun 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions mm2src/adex_cli/src/rpc_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! *Note: it's expected that the following data types will be moved to mm2_rpc::data when mm2 is refactored to be able to handle them*
//!

use mm2_rpc::data::legacy::{ElectrumProtocol, GasStationPricePolicy, UtxoMergeParams};
use mm2_rpc::data::legacy::{ElectrumProtocol, UtxoMergeParams};
use serde::{Deserialize, Serialize};

#[derive(Debug, Deserialize, Serialize)]
Expand All @@ -23,12 +23,6 @@ pub(crate) struct EnableRequest {
#[serde(skip_serializing_if = "Option::is_none")]
fallback_swap_contract: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
gas_station_url: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
gas_station_decimals: Option<u8>,
#[serde(skip_serializing_if = "Option::is_none")]
gas_station_policy: Option<GasStationPricePolicy>,
#[serde(skip_serializing_if = "Option::is_none")]
mm2: Option<u8>,
#[serde(default)]
tx_history: bool,
Expand Down
7 changes: 4 additions & 3 deletions mm2src/adex_cli/src/scenarios/mm2_proc_mng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,11 @@ pub(crate) fn get_status() {
.filter(|line| line.contains("PID"))
.last()
{
let pid = found
.trim()
let chars = found.trim();

let pid = chars
.matches(char::is_numeric)
.fold(String::default(), |mut pid, ch| {
.fold(String::with_capacity(chars.len()), |mut pid, ch| {
pid.push_str(ch);
pid
});
Expand Down
6 changes: 3 additions & 3 deletions mm2src/coins/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ derive_more = "0.99"
ed25519-dalek = "1.0.1"
enum_derives = { path = "../derives/enum_derives" }
ethabi = { version = "17.0.0" }
ethcore-transaction = { git = "https://github.com/KomodoPlatform/mm2-parity-ethereum.git" }
ethcore-transaction = { git = "https://github.com/KomodoPlatform/mm2-parity-ethereum.git", rev = "mm2-v2.1.1" }
ethereum-types = { version = "0.13", default-features = false, features = ["std", "serialize"] }
ethkey = { git = "https://github.com/KomodoPlatform/mm2-parity-ethereum.git" }
ethkey = { git = "https://github.com/KomodoPlatform/mm2-parity-ethereum.git", rev = "mm2-v2.1.1" }
# Waiting for https://github.com/rust-lang/rust/issues/54725 to use on Stable.
#enum_dispatch = "0.1"
futures01 = { version = "0.1", package = "futures" }
Expand Down Expand Up @@ -112,7 +112,7 @@ url = { version = "2.2.2", features = ["serde"] }
uuid = { version = "1.2.2", features = ["fast-rng", "serde", "v4"] }
# One of web3 dependencies is the old `tokio-uds 0.1.7` which fails cross-compiling to ARM.
# We don't need the default web3 features at all since we added our own web3 transport using shared HYPER instance.
web3 = { git = "https://github.com/KomodoPlatform/rust-web3", tag = "v0.19.0", default-features = false }
web3 = { git = "https://github.com/KomodoPlatform/rust-web3", tag = "v0.20.0", default-features = false }
zbase32 = "0.1.2"
zcash_client_backend = { git = "https://github.com/KomodoPlatform/librustzcash.git", tag = "k-1.4.1" }
zcash_extras = { git = "https://github.com/KomodoPlatform/librustzcash.git", tag = "k-1.4.1" }
Expand Down
7 changes: 4 additions & 3 deletions mm2src/coins/coin_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ impl From<Web3RpcError> for ValidatePaymentError {
match e {
Web3RpcError::Transport(tr) => ValidatePaymentError::Transport(tr),
Web3RpcError::InvalidResponse(resp) => ValidatePaymentError::InvalidRpcResponse(resp),
Web3RpcError::Internal(internal) | Web3RpcError::Timeout(internal) => {
ValidatePaymentError::InternalError(internal)
},
Web3RpcError::Internal(internal)
| Web3RpcError::Timeout(internal)
| Web3RpcError::NumConversError(internal)
| Web3RpcError::InvalidGasApiConfig(internal) => ValidatePaymentError::InternalError(internal),
Web3RpcError::NftProtocolNotSupported => ValidatePaymentError::NftProtocolNotSupported,
}
}
Expand Down
Loading