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

Python SDK #490

Merged
merged 13 commits into from
May 23, 2023
Merged

Python SDK #490

merged 13 commits into from
May 23, 2023

Conversation

leric7
Copy link
Collaborator

@leric7 leric7 commented May 19, 2023

Description

Python SDK Implementation

Summary of changes

  • Removed old job module from python SDK.
  • Removed Sphinx doc generation, and doctest.
  • Implemented new python modules for Escrow, Storage, Staking, and RewardPool.
  • Added unit tests.
  • Migrated old unit tests to e2e tests.

How test the changes

Related issues

Keywords for linking issues

Operational checklist

  • All new functionality is covered by tests
  • Any related documentation has been changed or added

flopez7 and others added 9 commits May 15, 2023 11:57
* Modify storage methods in python SDK

* Add tests to storage module

* Change boto3 to minio

* Integrate storage module in python SDK

---------

Co-authored-by: Sergey Dzeranov <sergey.dzeranov@gmail.com>
Co-authored-by: Eric Lee <eric@hmt.ai>
* staking methods

* add tests

* fix unit test and move e2e test to separate dir
* Python KVStore

* Add KVStore tests

* Update KVStore docs
* subgraph integration for python staking module

* fix subgraph query
* staking methods

* add tests

* fix unit test and move e2e test to separate dir
* Python SDK escrow module

* Add new methods and tests to escrow module

* Add subgraph methods and made errors more descriptive

* Optimize exceptions

* Add common handle_transaction and improve exception messages

* Add tests to check hasEscrow contract method
@vercel
Copy link

vercel bot commented May 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
escrow-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2023 3:05pm
faucet-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2023 3:05pm
fortune-exchange-oracle-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2023 3:05pm
5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
fortune-exchange-oracle ⬜️ Ignored (Inspect) May 22, 2023 3:05pm
fortune-job-launcher-client ⬜️ Ignored (Inspect) May 22, 2023 3:05pm
fortune-job-launcher-server ⬜️ Ignored (Inspect) May 22, 2023 3:05pm
fortune-recording-oracle ⬜️ Ignored (Inspect) May 22, 2023 3:05pm
fortune-reputation-oracle ⬜️ Ignored (Inspect) May 22, 2023 3:05pm

@leric7 leric7 requested a review from portuu3 May 19, 2023 13:34
Copy link
Collaborator

@portuu3 portuu3 left a comment

Choose a reason for hiding this comment

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

packages/sdk/python/human-protocol-sdk/README.md Outdated Show resolved Hide resolved
packages/sdk/python/human-protocol-sdk/README.md Outdated Show resolved Hide resolved
@flopez7 flopez7 merged commit 067d3f6 into develop May 23, 2023
19 checks passed
@portuu3 portuu3 deleted the feat/python-sdk branch May 23, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants