feat(ETH): balance event streaming for ETH#2041
Conversation
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
…h-balance-stream-event
Signed-off-by: onur-ozkan <work@onurozkan.dev>
| async fn handle(self, interval: f64, tx: oneshot::Sender<EventInitStatus>) { | ||
| const RECEIVER_DROPPED_MSG: &str = "Receiver is dropped, which should never happen."; | ||
|
|
||
| async fn with_socket(_coin: EthCoin, _ctx: MmArc) { todo!() } |
There was a problem hiding this comment.
Socket support is blocked by GLEECBTC/komodo-defi-proxy#18 implementation which shouldn't be a blocker for review/merge in my opinion (if we review/merge this PR at this stage, GUI devs can start implementing balance streaming for eth,cosmos,utxo protocols).
laruh
left a comment
There was a problem hiding this comment.
Thanks for this enhancement! I have a question for now.
Signed-off-by: onur-ozkan <work@onurozkan.dev>
c92710f to
fb0eb96
Compare
Signed-off-by: onur-ozkan <work@onurozkan.dev>
borngraced
left a comment
There was a problem hiding this comment.
Great work!
Just one note from me 😃
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
| ( | ||
| coin.address_balance(coin.my_address) | ||
| .compat() | ||
| .await | ||
| .map_err(|e| (token_ticker.clone(), e))?, | ||
| coin.decimals, | ||
| ) | ||
| } else { | ||
| ( | ||
| coin.get_token_balance_by_address(info.token_address) | ||
| .await | ||
| .map_err(|e| (token_ticker.clone(), e))?, | ||
| info.decimals, | ||
| ) |
There was a problem hiding this comment.
Since this PR will be merged before #1979
This is just a reminder for me to implement balance streaming for all addresses in the HD wallet similar to how it's done for utxos.
|
@KomodoPlatform/qa I merged this PR since it's needed to continue work here #2058 QA/testing can be done when the other PR is ready or in dev. |
* evm-hd-wallet: (27 commits) Fix todo comments Fix HDAddressOps::Address trait bounds fix(indexeddb): fix IDB cursor.continue_() call after drop (GLEECBTC#2028) security bump for `h2` (GLEECBTC#2062) fix(makerbot): allow more than one prices url in makerbot (GLEECBTC#2027) fix(wasm worker env): refactor direct usage of `window` (GLEECBTC#1953) feat(nft): nft abi in withdraw_nft RPC, clear_nft_db RPC (GLEECBTC#2039) refactor(utxo): refactor utxo output script creation (GLEECBTC#1960) feat(ETH): balance event streaming for ETH (GLEECBTC#2041) chore(release): bump mm2 version to 2.1.0-beta (GLEECBTC#2044) feat(trezor): add segwit support for withdraw with trezor (GLEECBTC#1984) chore(config): remove vscode launchjson (GLEECBTC#2040) feat(trading-proto-upgrade): wasm DB, kickstart, refund states, v2 RPCs (GLEECBTC#2015) feat(UTXO): balance event streaming for Electrum clients (GLEECBTC#2013) feat(tx): add new sign_raw_transaction rpc for UTXO and EVM coins (GLEECBTC#1930) fix(p2p): handle encode_and_sign errors (GLEECBTC#2038) chore(release): add changelog entries for v2.0.0-beta (GLEECBTC#2037) chore(network): write network information to stdout (GLEECBTC#2034) fix(price_endpoints): add cached url (GLEECBTC#2032) deps(network): sync with upstream yamux (GLEECBTC#2030) ...
* dev: feat(zcoin): ARRR WASM implementation (GLEECBTC#1957) feat(trading-proto-upgrade): locked amounts, kmd burn and other impl (GLEECBTC#2046) fix(indexeddb): set stop on success cursor condition (GLEECBTC#2067) feat(config): add `max_concurrent_connections` to mm2 config (GLEECBTC#2063) feat(stats_swaps): add gui/mm_version in stats db (GLEECBTC#2061) fix(indexeddb): fix IDB cursor.continue_() call after drop (GLEECBTC#2028) security bump for `h2` (GLEECBTC#2062) fix(makerbot): allow more than one prices url in makerbot (GLEECBTC#2027) fix(wasm worker env): refactor direct usage of `window` (GLEECBTC#1953) feat(nft): nft abi in withdraw_nft RPC, clear_nft_db RPC (GLEECBTC#2039) refactor(utxo): refactor utxo output script creation (GLEECBTC#1960) feat(ETH): balance event streaming for ETH (GLEECBTC#2041) chore(release): bump mm2 version to 2.1.0-beta (GLEECBTC#2044) feat(trezor): add segwit support for withdraw with trezor (GLEECBTC#1984)
This PR aims to:
Can be tested in a same way of #1978 PR.