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(sia): initial Sia integration #2086

Merged
merged 89 commits into from
Apr 25, 2024
Merged

feat(sia): initial Sia integration #2086

merged 89 commits into from
Apr 25, 2024

Conversation

Alrighttt
Copy link
Member

@Alrighttt Alrighttt commented Mar 11, 2024

Changelog

  • Added skeleton Sia integration to demonstrate the code organization.

  • Mocked the minimal amount of functionality to support enabling a "sia protocol" coin

  • PoC of HTTP(s) interface between mm2 and Sia's walletd node software

  • Implemented 2 walletd endpoints, GET api/consensus/tip and GET api/addresses/<address>/balance

  • Conditional compilation of all sia features

Planned for next sprint:

  • Add config option for HTTP timeout

  • Implement sensitization of let endpoint_path = format!("api/addresses/{}/balance", address); or similar patterns.

  • Re-enable docker unit tests

Copy link
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a great start :)
No major issues at all so I just left some comments that I am sure you are aware of, but I am leaving them just in case. Don't forget doc comments on pub structs/enums/functions/traits/etc.. please also try to fix merge conflicts quickly before they get too much. I guess the next step would be deriving address from pubkey.

mm2src/coins/lp_coins.rs Outdated Show resolved Hide resolved
mm2src/coins/sia.rs Outdated Show resolved Hide resolved
mm2src/coins/sia.rs Outdated Show resolved Hide resolved
mm2src/coins/sia.rs Outdated Show resolved Hide resolved
mm2src/coins/sia.rs Show resolved Hide resolved
mm2src/coins/sia.rs Show resolved Hide resolved
mm2src/coins/sia/http_client.rs Outdated Show resolved Hide resolved
@Alrighttt
Copy link
Member Author

All review comments addressed. Thanks for the feedback.

shamardy
shamardy previously approved these changes Apr 25, 2024
Copy link
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@shamardy shamardy merged commit b56a662 into dev Apr 25, 2024
20 of 25 checks passed
@shamardy shamardy deleted the sia-dev branch April 25, 2024 18:25
dimxy added a commit to dimxy/komodo-defi-framework that referenced this pull request Apr 29, 2024
* dev:
  docs(README): remove outdated information from the README (KomodoPlatform#2097)
  fix(sia): fix sia compilation after hd wallet PR merge (KomodoPlatform#2103)
  feat(hd_wallet): utxo and evm hd wallet and trezor (KomodoPlatform#1962)
  feat(sia): initial Sia integration (KomodoPlatform#2086)
  fix(BCH): deserialize BCH header that uses KAWPOW version correctly (KomodoPlatform#2099)
  fix(eth_tests): remove ETH_DEV_NODE from tests (KomodoPlatform#2101)
dimxy added a commit to dimxy/komodo-defi-framework that referenced this pull request May 9, 2024
* dev:
  feat(app-dir): implement root application dir `.kdf` (KomodoPlatform#2102)
  fix tendermint fee calculation (KomodoPlatform#2106)
  update dockerfile (KomodoPlatform#2104)
  docs(README): remove outdated information from the README (KomodoPlatform#2097)
  fix(sia): fix sia compilation after hd wallet PR merge (KomodoPlatform#2103)
  feat(hd_wallet): utxo and evm hd wallet and trezor (KomodoPlatform#1962)
  feat(sia): initial Sia integration (KomodoPlatform#2086)
  fix(BCH): deserialize BCH header that uses KAWPOW version correctly (KomodoPlatform#2099)
  fix(eth_tests): remove ETH_DEV_NODE from tests (KomodoPlatform#2101)
  feat(coin): support nucleus as an alternative to iris HTLC (KomodoPlatform#2079)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress Changes will be made from the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants