feat(sdk): RustChain Python SDK v3 -- pip install rustchain (Bounty #2297, 125 RTC)#1831
Open
kuanglaodi2-sudo wants to merge 1 commit intoScottcjn:mainfrom
Open
feat(sdk): RustChain Python SDK v3 -- pip install rustchain (Bounty #2297, 125 RTC)#1831kuanglaodi2-sudo wants to merge 1 commit intoScottcjn:mainfrom
kuanglaodi2-sudo wants to merge 1 commit intoScottcjn:mainfrom
Conversation
|
Welcome to RustChain! Thanks for your first pull request. Before we review, please make sure:
Bounty tiers: Micro (1-10 RTC) | Standard (20-50) | Major (75-100) | Critical (100-150) A maintainer will review your PR soon. Thanks for contributing! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a comprehensive Python SDK for RustChain (Bounty #2419 / #2297, 125 RTC).
What
rustchain/package with full async httpx client, dataclass models, typed exceptionshealth,epoch,miners,balance,transfer-signed,admin-transfer,settlepyproject.tomlwithpip install rustchainsupport and entry pointFiles
rustchain/__init__.pyrustchain/client.pyRustChainClientwith context managerrustchain/models.pyNodeHealth,EpochInfo,MinerInfo,BalanceInfo,SignedTransferrustchain/exceptions.pyRustChainError,APIError,ValidationError,AuthenticationErrorrustchain/cli.pytests/test_client.pypyproject.tomlREADME.mdAPI Coverage
GET /health→NodeHealthGET /epoch→EpochInfoGET /api/miners→list[MinerInfo]GET /wallet/balance?miner_id=→BalanceInfoPOST /wallet/transfer/signed→ signed transferPOST /wallet/transfer(X-Admin-Key) → admin transferPOST /rewards/settle(X-Admin-Key) → settle rewardsBounty Payout
Wallet:
C4c7r9WPsnEe6CUfegMU9M7ReHD1pWg8qeSfTBoRcLbgBounty #2419 — 125 RTC