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

PR-1590 conflicts resolved #12

Merged
merged 105 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
e05b61a
[Job Launcher] Launch hСaptcha jobs (#1220)
eugenvoronov Dec 19, 2023
f311e3f
[Dashhboard] Fix admin build issue (#1366)
m00n620 Dec 19, 2023
2b9372e
Job Launcher - CVAT S3 bucket limitations (#1379)
portuu3 Dec 21, 2023
269fd31
[Reputation Oracle] Separate streams for hashing and uploading a file…
Dzeranov Dec 22, 2023
6893087
[Dashboard UI] Add google tag manager (#1389)
m00n620 Dec 22, 2023
ecfb0bf
list objects in bucket improvements (#1391)
portuu3 Dec 22, 2023
ddd67e7
[Dashboard UI] fix ui bugs and tasks data on dashboard ui (#1385)
m00n620 Dec 22, 2023
95a63af
use multiplier (#1392)
m00n620 Dec 22, 2023
c2d7bd8
Bump aws-sdk from 2.1521.0 to 2.1528.0 (#1427)
dependabot[bot] Jan 3, 2024
72d27dd
Bump @types/node from 20.10.4 to 20.10.6 (#1426)
dependabot[bot] Jan 3, 2024
db62b05
Bump react-redux from 8.1.3 to 9.0.4 (#1397)
dependabot[bot] Jan 3, 2024
08f9b21
Bump @mui/x-date-pickers from 6.18.5 to 6.18.6 (#1395)
dependabot[bot] Jan 3, 2024
6615c6e
[Job Launcher] Split cron jobs to launch and lock while running. (#1383)
leric7 Jan 7, 2024
7e4763c
[Job Launcher] Fix password validation regex (#1369)
eugenvoronov Jan 8, 2024
be71b8c
Bump @graphprotocol/graph-cli from 0.62.0 to 0.64.1 (#1434)
dependabot[bot] Jan 8, 2024
76fac80
Bump web-vitals from 3.5.0 to 3.5.1 (#1435)
dependabot[bot] Jan 8, 2024
6ce6ab7
Bump chai from 4.3.10 to 4.4.0 (#1436)
dependabot[bot] Jan 8, 2024
dea9efc
Bump @strapi/plugin-i18n from 4.15.5 to 4.16.2 (#1437)
dependabot[bot] Jan 8, 2024
8278fa7
Bump lint-staged from 14.0.1 to 15.2.0 (#1439)
dependabot[bot] Jan 8, 2024
fdfad7f
[Job Launcher] CVAT S3 buckets (#1384)
m00n620 Jan 8, 2024
8ee6207
Ethers v6 (#1428)
flopez7 Jan 9, 2024
ffc05f8
feat: update web3 version (#1430)
leric7 Jan 9, 2024
f957962
add new cron jobs and change cron expression (#1441)
portuu3 Jan 9, 2024
af03ba8
[SDK] [Python] Updated cancel method (#960)
eugenvoronov Jan 10, 2024
fa803de
fix date sorting for solved tasks chart (#1447)
m00n620 Jan 11, 2024
60fa171
Fix error messages when reverting transactions (#1449)
flopez7 Jan 15, 2024
b93a2f7
Bump @nestjs/schedule from 3.0.4 to 4.0.0 (#1459)
dependabot[bot] Jan 15, 2024
bf73c0b
Bump supertest and @types/supertest (#1460)
dependabot[bot] Jan 15, 2024
7b73a0e
Bump pg from 8.8.0 to 8.11.3 (#1461)
dependabot[bot] Jan 15, 2024
e46c32c
Bump jest and @types/jest (#1462)
dependabot[bot] Jan 15, 2024
2662e1a
remove rust contracts (#1463)
leric7 Jan 16, 2024
80eaf0c
Fix endpoint methods and setup function (#1468)
portuu3 Jan 16, 2024
cb81876
use snake case for reputation oracle API req/res (#1470)
leric7 Jan 16, 2024
0a5675c
Make buckets path optional (#1475)
portuu3 Jan 17, 2024
574e83a
[Job Launcher][Client] Disable job types (#1457)
flopez7 Jan 17, 2024
1f10805
update SDK changelog (#1474)
portuu3 Jan 17, 2024
f06478f
remove hufi from monorepo (#1476)
leric7 Jan 17, 2024
3c1ea35
[Reputation Oracle] feat: Encrypt result for job launcher (#1444)
leric7 Jan 17, 2024
43f5735
fix storage module init (#1479)
leric7 Jan 18, 2024
dda7881
[Job Launcher] Encrypt manifest (#1101)
flopez7 Jan 18, 2024
745dfb1
[Job Launcher] Convert to snake case (#1478)
flopez7 Jan 18, 2024
47b5f8b
[CVAT][Oracles] Fix CVAT oracles tests (#1144)
flopez7 Jan 18, 2024
180e32c
[Job Launcher] Decrypt file after downloading (#1328)
leric7 Jan 18, 2024
24226a9
feat: clean unused environment variables (#1483)
mrhouzlane Jan 19, 2024
e68ba93
[Dashboard UI] Support historical data on middle task graph (#1491)
m00n620 Jan 22, 2024
9fe15e6
Bump dotenv from 16.3.1 to 16.3.2 (#1500)
dependabot[bot] Jan 23, 2024
c99c510
Bump dotenv-cli from 6.0.0 to 7.3.0 (#1501)
dependabot[bot] Jan 23, 2024
66d69c4
Bump actions/dependency-review-action from 3 to 4 (#1499)
dependabot[bot] Jan 23, 2024
e8fd650
Bump vite-plugin-node-polyfills from 0.7.0 to 0.19.0 (#1502)
dependabot[bot] Jan 23, 2024
d02bc25
Bump json-stable-stringify from 1.1.0 to 1.1.1 (#1503)
dependabot[bot] Jan 23, 2024
72cf9ac
Bump class-validator from 0.14.0 to 0.14.1 (#1504)
dependabot[bot] Jan 23, 2024
260b73e
fix: update vite version to fix security warning (#1512)
leric7 Jan 23, 2024
39e9b12
Remove confirm from ValidatePasswordDto (#1516)
flopez7 Jan 24, 2024
63f1c25
Create an endpoint to retrieve the job launcher address (#1498)
flopez7 Jan 24, 2024
c44e7f9
Add new untracked statuses to getJobsByStatus (#1518)
flopez7 Jan 25, 2024
e859447
Fix the usage of encryption module inside Job Launcher (#1505)
flopez7 Jan 25, 2024
4e945a8
Use endpoint to get job launcher address (#1517)
flopez7 Jan 25, 2024
85eec41
[Job Launcher] Get Job Launcher fee from KVStore (#1513)
flopez7 Jan 25, 2024
3e6c209
fix build issue, move codebase (#1533)
m00n620 Jan 25, 2024
1753970
Remove confirm from ValidatePasswordDTO in Reputation Oracle (#1534)
flopez7 Jan 26, 2024
e347920
[Recording Oracle][Exchange Oracle] Submissions rejected (#1482)
flopez7 Jan 26, 2024
a3c9def
[Job Launcher] Move cron jobs into cron jobs controller (#1514)
flopez7 Jan 26, 2024
62e1848
[Reputation Oracle] feat: Implement API endpoints for KYC (#1495)
leric7 Jan 26, 2024
b6c9210
fix env.example with all relevant env data (#1536)
leric7 Jan 26, 2024
3d4b305
[Job Launcher] Rework user service - repository schema (#1535)
flopez7 Jan 30, 2024
55f6583
Bump react-redux from 9.0.4 to 9.1.0 (#1538)
dependabot[bot] Jan 30, 2024
ea4623f
Bump sinon from 15.2.0 to 17.0.1 (#1541)
dependabot[bot] Jan 30, 2024
1ba9bcd
Bump rollup from 2.79.1 to 4.9.6 (#1542)
dependabot[bot] Jan 30, 2024
9c04d66
Bump @mui/x-date-pickers from 6.18.7 to 6.19.2 (#1540)
dependabot[bot] Jan 30, 2024
bf4fedf
Bump @nestjs/testing from 9.4.3 to 10.3.1 (#1539)
dependabot[bot] Jan 30, 2024
9ef8737
Update imports for Vercel (#1549)
flopez7 Jan 31, 2024
06fa3d9
clean up error messages (#1515)
m00n620 Jan 31, 2024
54139e1
Integrate SDK updates (#1547)
zhiltsov-max Feb 1, 2024
547f19c
fix import route (#1553)
portuu3 Feb 1, 2024
cd60eb8
[Job Launcher] Rework payment service - repository schema (#1550)
flopez7 Feb 2, 2024
366a1f5
Fix CVAT failing tests in recording and exchange oracles (#1559)
flopez7 Feb 5, 2024
2004598
Bump @rollup/plugin-typescript from 11.1.5 to 11.1.6 (#1567)
dependabot[bot] Feb 5, 2024
6dafa76
Bump @nestjs/terminus from 10.2.0 to 10.2.1 (#1566)
dependabot[bot] Feb 5, 2024
81373c4
Bump chai from 4.4.0 to 4.4.1 (#1565)
dependabot[bot] Feb 5, 2024
9d6831b
Bump @graphprotocol/graph-ts from 0.31.0 to 0.32.0 (#1564)
dependabot[bot] Feb 5, 2024
73ee84d
Bump prettier from 3.1.1 to 3.2.5 (#1563)
dependabot[bot] Feb 5, 2024
aca02ee
[Job Launcher] Rework job service - repository schema (#1561)
flopez7 Feb 6, 2024
acdcdde
[Job Launcher] Rework webhook service - repository schema (#1545)
flopez7 Feb 6, 2024
c132074
[Job Launcher] Rework apikey, token and auth service - repository sch…
flopez7 Feb 6, 2024
2862dd9
[Job Launcher] Rework Cron Job service - repository schema (#1552)
flopez7 Feb 7, 2024
56db6db
Added apikey decorator to get access of job detail endpoint in discor…
sarthakvijayvergiya Feb 7, 2024
6bb85bf
Refactor uploadManifest (#1571)
flopez7 Feb 8, 2024
833776d
[Job Launcher] Send hcaptcha token for verification (#1569)
flopez7 Feb 9, 2024
0d40ce7
Bump @stripe/stripe-js from 2.3.0 to 2.4.0 (#1579)
dependabot[bot] Feb 13, 2024
fbe0513
Bump @testing-library/jest-dom from 6.2.0 to 6.4.2 (#1584)
dependabot[bot] Feb 13, 2024
ce1b8e6
[Job Launcher] Refactor createJob (#1574)
flopez7 Feb 13, 2024
3ae24c5
disable hcaptcha token verification (#1588)
portuu3 Feb 13, 2024
3074a67
Job Launcher - Fix token for email validaiton not saved (#1591)
portuu3 Feb 13, 2024
da63e8c
Job launcher fixes (#1593)
portuu3 Feb 14, 2024
47f9be5
[Reputation Oracle] Implemented Cron and Payout Modules (#1586)
eugenvoronov Feb 16, 2024
73707dd
fix cron jobs reputation oracle (#1596)
portuu3 Feb 16, 2024
948ae45
Job Launcher - add pgp passphrase (#1598)
portuu3 Feb 16, 2024
2a767b1
Bump stripe from 14.11.0 to 14.17.0 (#1603)
dependabot[bot] Feb 19, 2024
19c4587
Bump @hcaptcha/react-hcaptcha from 1.9.2 to 1.10.1 (#1602)
dependabot[bot] Feb 19, 2024
5ae920b
Bump @types/node from 20.10.6 to 20.11.19 (#1601)
dependabot[bot] Feb 19, 2024
3e95d46
Bump @nestjs/serve-static from 4.0.0 to 4.0.1 (#1583)
dependabot[bot] Feb 20, 2024
068917b
Reputation Oracle - Store operator information on chain (#1599)
flopez7 Feb 20, 2024
3abb4c3
[Reputation Oracle] Added pre-signup logic (#1600)
eugenvoronov Feb 20, 2024
486b4ab
Update cryptography package in oracles (#1609)
zhiltsov-max Feb 20, 2024
8a024aa
Merge remote-tracking branch 'human-protocol/develop'
MWBlocky Feb 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/ci-dependency-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
- name: "Checkout Repository"
uses: actions/checkout@v4
- name: "Dependency Review"
uses: actions/dependency-review-action@v3
uses: actions/dependency-review-action@v4
50 changes: 0 additions & 50 deletions .github/workflows/ci-mx-contracts.yaml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/ci-test-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
workflow_dispatch:

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-test-dashboard-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/sdk/typescript/subgraph/**'
- 'packages/apps/dashboard/ui/**'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-test-faucet-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/apps/faucet-server/**'
workflow_dispatch:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-test-fortune-v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/app/fortune/**'
workflow_dispatch:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-test-job-launcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
paths:
- "packages/core/**"
- "!packages/core/mx/**"
- "packages/sdk/typescript/human-protocol-sdk/**"
- "packages/apps/job-launcher/**"
workflow_dispatch:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-test-meta-code-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/apps/meta-code-verify/**'
workflow_dispatch:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-test-node-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
workflow_dispatch:

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-test-python-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
- 'packages/sdk/python/human-protocol-sdk/**'
workflow_dispatch:

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-test-reputation-oracle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
paths:
- "packages/core/**"
- "!packages/core/mx/**"
- "packages/sdk/typescript/human-protocol-sdk/**"
- "packages/apps/reputation-oracle/**"
workflow_dispatch:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-test-subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
- 'packages/sdk/typescript/subgraph/**'
workflow_dispatch:

Expand Down
87 changes: 46 additions & 41 deletions docs/sdk/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,52 @@

## Typescript SDK​

* [Encryption](typescript/modules/encryption.md)
* [Encryption](typescript/classes/encryption.Encryption.md)
* [EncryptionUtils](typescript/classes/encryption.EncryptionUtils.md)
* [Escrow](typescript/modules/escrow.md)
* [EscrowClient](typescript/classes/escrow.EscrowClient.md)
* [EscrowUtils](typescript/classes/escrow.EscrowUtils.md)
* [KVStore](typescript/modules/kvstore.md)
* [KVStoreClient](typescript/classes/kvstore.KVStoreClient.md)
* [Staking](typescript/modules/staking.md)
* [StakingClient](typescript/classes/staking.StakingClient.md)
* [Storage](typescript/modules/storage.md)
* [StorageClient](typescript/classes/storage.StorageClient.md)
* [Statistics](typescript/modules/statistics.md)
* [StatisticsClient](typescript/classes/statistics.StatisticsClient.md)
- [Encryption](typescript/modules/encryption.md)
- [Encryption](typescript/classes/encryption.Encryption.md)
- [EncryptionUtils](typescript/classes/encryption.EncryptionUtils.md)
- [Escrow](typescript/modules/escrow.md)
- [EscrowClient](typescript/classes/escrow.EscrowClient.md)
- [EscrowUtils](typescript/classes/escrow.EscrowUtils.md)
- [KVStore](typescript/modules/kvstore.md)
- [KVStoreClient](typescript/classes/kvstore.KVStoreClient.md)
- [Staking](typescript/modules/staking.md)
- [StakingClient](typescript/classes/staking.StakingClient.md)
- [Operator](typescript/modules/operator.md)
- [OperatorUtils](typescript/classes/staoperatorking.OperatorUtils.md)
- [Storage](typescript/modules/storage.md)
- [StorageClient](typescript/classes/storage.StorageClient.md)
- [Statistics](typescript/modules/statistics.md)
- [StatisticsClient](typescript/classes/statistics.StatisticsClient.md)

## Python SDK

* [agreement](python/human_protocol_sdk.agreement.md)
* [bootstrap](python/human_protocol_sdk.agreement.bootstrap.md)
* [measures](python/human_protocol_sdk.agreement.measures.md)
* [utils](python/human_protocol_sdk.agreement.utils.md)
* [encryption](python/human_protocol_sdk.encryption.md)
* [encryption](python/human_protocol_sdk.encryption.encryption.md)
* [legacy_encryption](python/human_protocol_sdk.legacy_encryption.md)
* [encryption_utils](python/human_protocol_sdk.encryption.encryption_utils.md)
* [escrow](python/human_protocol_sdk.escrow.md)
* [escrow_client](python/human_protocol_sdk.escrow.escrow_client.md)
* [escrow_utils](python/human_protocol_sdk.escrow.escrow_utils.md)
* [kvstore](python/human_protocol_sdk.kvstore.md)
* [kvstore_client](python/human_protocol_sdk.kvstore.kvstore_client.md)
* [staking](python/human_protocol_sdk.staking.md)
* [staking_client](python/human_protocol_sdk.staking.staking_client.md)
* [staking_utils](python/human_protocol_sdk.staking.staking_utils.md)
* [statistics](python/human_protocol_sdk.statistics.md)
* [statistics_client](python/human_protocol_sdk.statistics.statistics_client.md)
* [storage](python/human_protocol_sdk.storage.md)
* [storage_client](python/human_protocol_sdk.storage.storage_client.md)
* [storage_utils](python/human_protocol_sdk.storage.storage_utils.md)
* [constants](python/human_protocol_sdk.constants.md)
* [filter](python/human_protocol_sdk.filter.md)
* [utils](python/human_protocol_sdk.utils.md)
***

* [CHANGELOG](./changelog.md)
- [agreement](python/human_protocol_sdk.agreement.md)
- [bootstrap](python/human_protocol_sdk.agreement.bootstrap.md)
- [measures](python/human_protocol_sdk.agreement.measures.md)
- [utils](python/human_protocol_sdk.agreement.utils.md)
- [encryption](python/human_protocol_sdk.encryption.md)
- [encryption](python/human_protocol_sdk.encryption.encryption.md)
- [legacy_encryption](python/human_protocol_sdk.legacy_encryption.md)
- [encryption_utils](python/human_protocol_sdk.encryption.encryption_utils.md)
- [escrow](python/human_protocol_sdk.escrow.md)
- [escrow_client](python/human_protocol_sdk.escrow.escrow_client.md)
- [escrow_utils](python/human_protocol_sdk.escrow.escrow_utils.md)
- [kvstore](python/human_protocol_sdk.kvstore.md)
- [kvstore_client](python/human_protocol_sdk.kvstore.kvstore_client.md)
- [staking](python/human_protocol_sdk.staking.md)
- [staking_client](python/human_protocol_sdk.staking.staking_client.md)
- [staking_utils](python/human_protocol_sdk.staking.staking_utils.md)
- [operator](python/human_protocol_sdk.operator.md)
- [operator_utils](python/human_protocol_sdk.operator.operator_utils.md)
- [statistics](python/human_protocol_sdk.statistics.md)
- [statistics_client](python/human_protocol_sdk.statistics.statistics_client.md)
- [storage](python/human_protocol_sdk.storage.md)
- [storage_client](python/human_protocol_sdk.storage.storage_client.md)
- [storage_utils](python/human_protocol_sdk.storage.storage_utils.md)
- [constants](python/human_protocol_sdk.constants.md)
- [filter](python/human_protocol_sdk.filter.md)
- [utils](python/human_protocol_sdk.utils.md)

---

- [CHANGELOG](./changelog.md)
24 changes: 14 additions & 10 deletions docs/sdk/changelog.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,42 @@
# Changelog


### Added
- __Add transaction options:__ passing transaction options when a transaction is sent allows the user to set custom parameters like gas limit, gas price, etc.
- __Add gas estimation:__ add gas estimation as mechanism to verify that the transaction won't fail after being sent. Previously the transaction was sent and fees spent, but it failed if it didn't pass all requirements of the contract call.

- **Added OperatorUtils module:** new module for fetching leaders and operators information.

### Changed
- __KVStore contract addresses:__ new contracts deployed to include setBulk function.

- **Update ethers version:** update ethers to version 6.
- **Update cancel escrow method:** return transaction hash and refunded amount.

### Deprecated

### Removed
- __Default value for gas limit in Python:__ gas limit should not be the same for all transactions.
- __Gas price multiplier:__ gas price multiplier has been removed, but now the gas price can be passed as a parameter when the transaction is sent.

- **Remove staking utils module:** the methods from this module have been moved into the new OperatorUtils module.

### Fixed

### Security




# How to upgrade

## Typescript

### yarn

```
yarn upgrade @human-protocol/sdk
```
### npm

### npm

```
npm update @human-protocol/sdk
```

## Python

```
pip install --upgrade human-protocol-sdk
```
24 changes: 20 additions & 4 deletions docs/sdk/python/human_protocol_sdk.escrow.escrow_client.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ escrow_client = EscrowClient(w3)

## Module

### *class* human_protocol_sdk.escrow.escrow_client.EscrowCancel(tx_hash, amount_refunded)

Bases: `object`

#### \_\_init_\_(tx_hash, amount_refunded)

Represents the result of an escrow cancellation transaction.
Args:

> tx_hash (str): The hash of the transaction that cancelled the escrow.
> amount_refunded (Any): The amount refunded during the escrow cancellation.

### *class* human_protocol_sdk.escrow.escrow_client.EscrowClient(web3)

Bases: `object`
Expand Down Expand Up @@ -215,11 +227,15 @@ Cancels the specified escrow and sends the balance to the canceler.
* **escrow_address** (`str`) – Address of the escrow to cancel
* **tx_options** (`Optional`[`TxParams`]) – (Optional) Additional transaction parameters
* **Return type:**
`None`
[`EscrowCancel`](#human_protocol_sdk.escrow.escrow_client.EscrowCancel)
* **Returns:**
None
EscrowCancel:
An instance of the EscrowCancel class containing details of the cancellation transaction,
including the transaction hash and the amount refunded.
* **Raises:**
[**EscrowClientError**](#human_protocol_sdk.escrow.escrow_client.EscrowClientError) – If an error occurs while checking the parameters
* [**EscrowClientError**](#human_protocol_sdk.escrow.escrow_client.EscrowClientError) – If an error occurs while checking the parameters
* [**EscrowClientError**](#human_protocol_sdk.escrow.escrow_client.EscrowClientError) – If the transfer event associated with the cancellation
is not found in the transaction logs
* **Example:**
```python
from eth_typing import URI
Expand All @@ -242,7 +258,7 @@ Cancels the specified escrow and sends the balance to the canceler.
(w3, gas_payer) = get_w3_with_priv_key('YOUR_PRIVATE_KEY')
escrow_client = EscrowClient(w3)

transaction_hash = escrow_client.cancel(
escrow_cancel_data = escrow_client.cancel(
"0x62dD51230A30401C455c8398d06F85e4EaB6309f"
)
```
Expand Down
2 changes: 2 additions & 0 deletions docs/sdk/python/human_protocol_sdk.escrow.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ obtain information from both the contracts and subgraph.
* [human_protocol_sdk.escrow.escrow_client module](human_protocol_sdk.escrow.escrow_client.md)
* [Code Example](human_protocol_sdk.escrow.escrow_client.md#code-example)
* [Module](human_protocol_sdk.escrow.escrow_client.md#module)
* [`EscrowCancel`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowCancel)
* [`EscrowCancel.__init__()`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowCancel.__init__)
* [`EscrowClient`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient)
* [`EscrowClient.__init__()`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient.__init__)
* [`EscrowClient.abort()`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient.abort)
Expand Down
8 changes: 1 addition & 7 deletions docs/sdk/python/human_protocol_sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* [human_protocol_sdk.escrow.escrow_client module](human_protocol_sdk.escrow.escrow_client.md)
* [Code Example](human_protocol_sdk.escrow.escrow_client.md#code-example)
* [Module](human_protocol_sdk.escrow.escrow_client.md#module)
* [`EscrowCancel`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowCancel)
* [`EscrowClient`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient)
* [`EscrowClientError`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClientError)
* [`EscrowConfig`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowConfig)
Expand All @@ -59,13 +60,6 @@
* [`AllocationData`](human_protocol_sdk.staking.staking_client.md#human_protocol_sdk.staking.staking_client.AllocationData)
* [`StakingClient`](human_protocol_sdk.staking.staking_client.md#human_protocol_sdk.staking.staking_client.StakingClient)
* [`StakingClientError`](human_protocol_sdk.staking.staking_client.md#human_protocol_sdk.staking.staking_client.StakingClientError)
* [human_protocol_sdk.staking.staking_utils module](human_protocol_sdk.staking.staking_utils.md)
* [Code Example](human_protocol_sdk.staking.staking_utils.md#code-example)
* [Module](human_protocol_sdk.staking.staking_utils.md#module)
* [`LeaderData`](human_protocol_sdk.staking.staking_utils.md#human_protocol_sdk.staking.staking_utils.LeaderData)
* [`LeaderFilter`](human_protocol_sdk.staking.staking_utils.md#human_protocol_sdk.staking.staking_utils.LeaderFilter)
* [`RewardData`](human_protocol_sdk.staking.staking_utils.md#human_protocol_sdk.staking.staking_utils.RewardData)
* [`StakingUtils`](human_protocol_sdk.staking.staking_utils.md#human_protocol_sdk.staking.staking_utils.StakingUtils)
* [human_protocol_sdk.statistics package](human_protocol_sdk.statistics.md)
* [Submodules](human_protocol_sdk.statistics.md#submodules)
* [human_protocol_sdk.statistics.statistics_client module](human_protocol_sdk.statistics.statistics_client.md)
Expand Down
24 changes: 24 additions & 0 deletions docs/sdk/python/human_protocol_sdk.operator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# human_protocol_sdk.operator package

This module enables to perform actions on staking contracts and
obtain staking information from both the contracts and subgraph.

## Submodules

* [human_protocol_sdk.operator.operator_utils module](human_protocol_sdk.operator.operator_utils.md)
* [Code Example](human_protocol_sdk.operator.operator_utils.md#code-example)
* [Module](human_protocol_sdk.operator.operator_utils.md#module)
* [`LeaderData`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.LeaderData)
* [`LeaderData.__init__()`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.LeaderData.__init__)
* [`LeaderFilter`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.LeaderFilter)
* [`LeaderFilter.__init__()`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.LeaderFilter.__init__)
* [`Operator`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.Operator)
* [`Operator.__init__()`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.Operator.__init__)
* [`OperatorUtils`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.OperatorUtils)
* [`OperatorUtils.get_leader()`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.OperatorUtils.get_leader)
* [`OperatorUtils.get_leaders()`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.OperatorUtils.get_leaders)
* [`OperatorUtils.get_reputation_network_operators()`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.OperatorUtils.get_reputation_network_operators)
* [`OperatorUtils.get_rewards_info()`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.OperatorUtils.get_rewards_info)
* [`OperatorUtilsError`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.OperatorUtilsError)
* [`RewardData`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.RewardData)
* [`RewardData.__init__()`](human_protocol_sdk.operator.operator_utils.md#human_protocol_sdk.operator.operator_utils.RewardData.__init__)
Loading
Loading