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): extract sia lib to external repo #2167

Merged
merged 330 commits into from
Aug 30, 2024
Merged

feat(sia): extract sia lib to external repo #2167

merged 330 commits into from
Aug 30, 2024

Conversation

Alrighttt
Copy link
Member

@Alrighttt Alrighttt commented Jul 17, 2024

Serde Changes

  • Separated Specifier to distinct module
  • v2 transaction creation and encoding support is functional except FileContractResolution.
  • Transaction signing demonstrated in unit tests.
  • Force explicit choice of encoding version and better memory structuring for Version types- re: @mariocynicys's feedback on PR refactor(sia): Sia http client refactor and  #2108

API Changes

  • Added more verbose errors to fetch_and_parse function.
  • Separated endpoints to distinct module.
  • Added api/addresses/:address/outputs/siacoin endpoint
  • Parse to URL instead of String and improve parse errors.

Refactoring and Cleanup

  • Miscellaneous refactoring and cleanup.
  • Fix and format multiple modules and unit tests.

There are many placeholders and TODOs still included in this pull request. Ready for review, but these sections of code are subject to change.

The next steps are to reorganize all the Sia code into a distinct "Sia Rust" crate. All DeFi framework logic will be separated.

shamardy
shamardy previously approved these changes Aug 27, 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.

Huge work @Alrighttt! Would it be fine by you to extract sia rust lib to a separate repo before merging this PR? I don't want to merge all this code to dev then remove a lot of it in another PR.

@shamardy
Copy link
Collaborator

I created a sia integration tracking issue here #2201 with checklist for things so that we don't forget.

@shamardy shamardy linked an issue Aug 27, 2024 that may be closed by this pull request
5 tasks
@shamardy shamardy removed a link to an issue Aug 27, 2024
5 tasks
@Alrighttt
Copy link
Member Author

Sia crate has now been moved to https://github.com/komodoplatform/sia-rust . This PR is ready to merge.

@shamardy
Copy link
Collaborator

Reverted this 9b015a5 here 4bdeb64 as requested by @Alrighttt. The reverted code will be included in the next PR as it's already in a new feature branch.

@shamardy shamardy changed the title feat(sia): transaction serde feat(sia): extract sia lib to external repo Aug 30, 2024
@shamardy shamardy merged commit 805ed93 into dev Aug 30, 2024
21 of 27 checks passed
@shamardy shamardy deleted the sia-encoding branch August 30, 2024 11:09
mariocynicys pushed a commit that referenced this pull request Aug 30, 2024
This comit removes any sia lib related code from kdf and uses sia-rust repo as a dependency instead. `my_balance` is also implemented for siacoin in this commit.
mariocynicys pushed a commit that referenced this pull request Aug 30, 2024
This comit removes any sia lib related code from kdf and uses sia-rust repo as a dependency instead. `my_balance` is also implemented for siacoin in this commit.
mariocynicys pushed a commit that referenced this pull request Aug 30, 2024
This comit removes any sia lib related code from kdf and uses sia-rust repo as a dependency instead. `my_balance` is also implemented for siacoin in this commit.
dimxy added a commit to dimxy/komodo-defi-framework that referenced this pull request Sep 13, 2024
* dev:
  chore(RPCs): rename `get_peers_info` RPC to `get_directly_connected_peers` (KomodoPlatform#2195)
  chore(WASM-builds): remove `wasm-opt` overriding (KomodoPlatform#2200)
  fix(coins): add p2p feature to mm2_net dependency (KomodoPlatform#2210)
  chore(test): turn on debug assertion (KomodoPlatform#2204)
  feat(sia): extract sia lib to external repo (KomodoPlatform#2167)
  feat(eth-swap): eth tpu v2 methods, eth docker test enhancements (KomodoPlatform#2169)
  fix(cors): allow OPTIONS request to KDF server (KomodoPlatform#2191)
  docs(README): update commit badges to use dev branch (KomodoPlatform#2193)
  use default value for `komodo_proxy` (KomodoPlatform#2192)
  feat(cosmos): komodo-defi-proxy support (KomodoPlatform#2173)
dimxy added a commit that referenced this pull request Sep 13, 2024
* dev:
  chore(RPCs): rename `get_peers_info` RPC to `get_directly_connected_peers` (#2195)
  chore(WASM-builds): remove `wasm-opt` overriding (#2200)
  fix(coins): add p2p feature to mm2_net dependency (#2210)
  chore(test): turn on debug assertion (#2204)
  feat(sia): extract sia lib to external repo (#2167)
  feat(eth-swap): eth tpu v2 methods, eth docker test enhancements (#2169)
  fix(cors): allow OPTIONS request to KDF server (#2191)
  docs(README): update commit badges to use dev branch (#2193)
  use default value for `komodo_proxy` (#2192)
  feat(cosmos): komodo-defi-proxy support (#2173)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants