Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ETH transport & heartbeats): various enhancements/features #2058

Merged
merged 55 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
f02fd9b
implement bare types for websocket transport
onur-ozkan Jan 23, 2024
7977a72
ws transport support and removal of eth::web3 field
onur-ozkan Jan 24, 2024
2734cd1
implement `fn prepare` for websocket_transport
onur-ozkan Jan 25, 2024
6973845
save dev state
onur-ozkan Jan 25, 2024
37324bc
partial design of handling request and socket events
onur-ozkan Jan 29, 2024
1de6a3f
fix WASM errors
onur-ozkan Jan 29, 2024
b969898
implement keepalive for ws connections
onur-ozkan Jan 29, 2024
b6f7c6d
save dev state
onur-ozkan Jan 29, 2024
4d02fb0
add TODO
onur-ozkan Jan 29, 2024
d06c195
make the websocket transport working
onur-ozkan Jan 30, 2024
059971e
improve websocket_transport performance by a lot
onur-ozkan Jan 31, 2024
d770af9
add some doc-comments
onur-ozkan Jan 31, 2024
f89191e
make the connection loop continious
onur-ozkan Jan 31, 2024
d336dbf
implement memory deallication on map pointer
onur-ozkan Feb 1, 2024
73d71fb
add todo note
onur-ozkan Feb 1, 2024
1e0cba4
implement `ExpirableEntry` common module
onur-ozkan Feb 2, 2024
95152b5
fixed-TODO: clear disconnected/outdated channels
onur-ozkan Feb 2, 2024
ca790a4
fix comma
onur-ozkan Feb 2, 2024
648832c
add client rotation on eth
onur-ozkan Feb 5, 2024
b045e8d
add TODO task
onur-ozkan Feb 5, 2024
3c2313a
unify `with_polling` and `with_socket`
onur-ozkan Feb 5, 2024
277aa75
use event handlers in websocket transport
onur-ozkan Feb 5, 2024
19cfad7
implement proper node rotation on ETH
onur-ozkan Feb 6, 2024
20179d1
fix the leftover TODO
onur-ozkan Feb 6, 2024
acaada4
use `break` instead of `return`
onur-ozkan Feb 6, 2024
3ddf62a
fix gui_auth related changes
onur-ozkan Feb 7, 2024
03eb60a
support komodo-defi-proxy in new websocket transport
onur-ozkan Feb 7, 2024
3da4c34
implement heartbeat event
onur-ozkan Feb 8, 2024
d9c0a5b
fix eth `get_live_client` for ws transport
onur-ozkan Feb 9, 2024
febad66
cleanup leftovers from dev
onur-ozkan Feb 12, 2024
3e47db6
remove `EthClient` abstraction
onur-ozkan Feb 14, 2024
df6682c
update websocket_transport module doc
onur-ozkan Feb 14, 2024
498025d
Merge branch 'dev' of github.com:KomodoPlatform/atomicDEX-API into et…
onur-ozkan Feb 14, 2024
0fe4e9a
add new error type `HeartbeatEventInitFailed`
onur-ozkan Feb 14, 2024
1e7a610
merge expirable map values
onur-ozkan Feb 14, 2024
d389c51
increase readibility in websocket_transport connection logic
onur-ozkan Feb 14, 2024
fb96d95
improve node rotation and nit fixes
onur-ozkan Feb 16, 2024
09a7ba7
shared ref on web3_instances
onur-ozkan Feb 16, 2024
751ba29
simplify `last_request_failed` handling
onur-ozkan Feb 18, 2024
aab065e
implement temporary connections for websocket transport
onur-ozkan Feb 19, 2024
5c0606f
use incremental timeouts
onur-ozkan Feb 19, 2024
93589e8
switch `info` log into `debug`
onur-ozkan Feb 19, 2024
c5177ea
improve how we handle `last_request_failed`
onur-ozkan Feb 20, 2024
272a0b6
seperate select functions controlled by callers
onur-ozkan Feb 20, 2024
0d6656b
remove redundant comments
onur-ozkan Feb 20, 2024
5e5c2e0
revert `Arc` on `web3_instances`
onur-ozkan Feb 21, 2024
a8440e8
create `eth_rpc` abstraction module
onur-ozkan Feb 21, 2024
6a2ec70
add doc-comments to eth_rpc module
onur-ozkan Feb 21, 2024
b8d9c85
prefer `pub(crate)`
onur-ozkan Feb 21, 2024
6b7267c
update outdated logs
onur-ozkan Feb 21, 2024
7107275
Merge branch 'dev' of github.com:KomodoPlatform/komodo-defi-framework…
onur-ozkan Feb 21, 2024
df48248
fix WASM error
onur-ozkan Feb 21, 2024
665dc2f
apply various improvements
onur-ozkan Feb 22, 2024
9de616c
send responses through notifier channel
onur-ozkan Feb 26, 2024
537a020
clear outdated entries before sending response
onur-ozkan Feb 26, 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
2 changes: 2 additions & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion mm2src/coins/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ ethereum-types = { version = "0.13", default-features = false, features = ["std"
ethkey = { git = "https://github.com/KomodoPlatform/mm2-parity-ethereum.git" }
# Waiting for https://github.com/rust-lang/rust/issues/54725 to use on Stable.
#enum_dispatch = "0.1"
tokio-tungstenite-wasm = { git = "https://github.com/KomodoPlatform/tokio-tungstenite-wasm", rev = "d20abdb", features = ["rustls-tls-native-roots"]}
futures01 = { version = "0.1", package = "futures" }
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
futures-ticker = "0.0.3"
# using select macro requires the crate to be named futures, compilation failed with futures03 name
futures = { version = "0.3", package = "futures", features = ["compat", "async-await"] }
group = "0.8.0"
Expand Down Expand Up @@ -100,6 +100,7 @@ sha3 = "0.9"
utxo_signer = { path = "utxo_signer" }
# using the same version as cosmrs
tendermint-rpc = { version = "=0.23.7", default-features = false }
tokio-tungstenite-wasm = { git = "https://github.com/KomodoPlatform/tokio-tungstenite-wasm", rev = "d20abdb", features = ["rustls-tls-native-roots"]}
tiny-bip39 = "0.8.0"
url = { version = "2.2.2", features = ["serde"] }
uuid = { version = "1.2.2", features = ["fast-rng", "serde", "v4"] }
Expand Down
Loading
Loading