Package: geodefi
geodefigeodefiis a Python library which makes it easier to interact with the Proof of Stake networks thatThe Staking Libraryis available.
It provides a simple and intuitive interface for accessing blockchain data, executing smart contract functions, and managing blockchain transactions related to Geode's Trustless staking solution.FeaturesSupports Ethereum Goerli testnet (as of v1.3.0) where The Protocol is deployed.Provides a simple and intuitive API for managing validators, operators, pools, tokens, and other smart contracts/packages.Dynamically adapts to the contract upgrades.Mostly chain agnostic. However, might differ according to the unique PoS implementations.Compatible from Python 3.7 to Python 3.10.InstallationUsing pip:pipinstallgeodefiUsing setup.py:python3setup.py.Usage DetailsNote that, Geode.Token refers to the chain-specific internal Token of The Staking Library. This token differs on different chains.Get the chain-specific internal TokengETH on Ethereum, gGNO on Gnosis etc.# Get gETH token with all functionalitiesgETH=Geode.TokentotalSupply=gETH.functions.totalSupply().call()print(f"Total Supply:{totalSupply}")ContributingWe welcome contributions from the community! To contribute to this project, please follow these steps:Fork the Repository: Click the "Fork" button at the top right corner of this repository to create your own copy.Clone the Repository: Clone the forked repository to your local machine using the following command:gitclonehttps://github.com/<your_user_name>/geode-py.gitVirtual Environment (adviced)Open virtual environment for python.sudopipinstallvirtualenv
python3-mvenv{path}source{path}/bin/activate

pipinstall-rrequirements.txtCreate a Branch: Create a new branch for your contribution:gitcheckout-bfeature/your-feature-nameStage Changes: Stage your changes to be commitedgitadd<your-modified-files>Commit Changes: Commit your changes with a descriptive commit message:gitcommit-m"Add feature: your feature description"Push Changes: Push your changes to your forked repository:gitpushoriginfeature/your-feature-nameCreate a Pull Request: Go to the original repository on GitHub and click on the "Pull Request" button. Fill out the necessary information and submit the pull request. Your pull request will be reviewed by the maintainers. Be ready to respond to any feedback or changes requested. You might need to make additional commits based on the feedback.Celebrate: Once your pull request is approved and merged, your contribution will be part of the project! Thank you for your contribution.DocumentationDetailed documentation for this project is available onGeodefi SDK.You can find information on how to install, use, and contribute to the project in the documentation. Whether you're a user or a developer, the documentation provides essential resources to help you get started.Update in documentationsIf your feature needs to have additional section inRead The Docs. Please check the docs in your local computer first.cddocs
makehtmlbuilt docs page is located in docs/_build/html/index.html.ReleasingUse main branch for releases.Change .github/workflows/pipy_release.yml version first, then:git tag 0.0.1 # or whatever version you want 
git push origin --tagsLicensegeodefiis licensed under MIT.