Skip to content

Commit a9cc549

Browse files
committed
Merge with subgraph-upgrades
2 parents 2adb311 + 1bd6f67 commit a9cc549

File tree

549 files changed

+16873
-5795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

549 files changed

+16873
-5795
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,43 @@
1-
## Description
1+
## Issue tracking
2+
<!--
3+
Where is the progress of this issue being tracked?
4+
Where can one find the requirements for this issue?
5+
Where did this issue originated from?
26
3-
<!-- Describe the goal of this pull request. What does it change or fix? -->
7+
E.g. GitHub issue, Slack message, etc.
8+
-->
49

5-
## Summary of changes
10+
## Context behind the change
11+
<!--
12+
What changes have you made to the code, and why?
613
7-
<!-- At a high level, what parts of the code did you change and why? -->
14+
Describe the goal of this pull request. What does it change or fix?
15+
At a high level, what parts of the code did you change and why?
16+
-->
817

9-
## How test the changes
18+
## How has this been tested?
19+
<!--
20+
You should always test your changes.
1021
11-
<!-- If there are any special testing requirements, add them here -->
22+
Describe the steps you took to make sure your PR does what it's supposed to do.
23+
How we ensure that adjacent code/features are still working?
24+
Are there any performance implications?
25+
-->
1226

13-
## Related issues
14-
[Keywords for linking issues](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests)
27+
## Release plan
28+
<!--
29+
If not you, but somebody else will be deploying this, what they need to know/do to succeed?
1530
16-
<!-- Does this close any open issues? -->
31+
Add any action items that need to be done for the release (any step, before/during/after),
32+
e.g. running a DB migration, leaving a note about release in Slack, adding new envs, etc.
33+
-->
34+
35+
## Potential risks; What to monitor; Rollback plan
36+
<!--
37+
What might go wrong with deployment of this PR?
38+
Can it affect some other services/areas? In what way?
39+
What metrics/dashboards/etc. you should keep an eye on while/after deploying this?
40+
41+
How will we handle any issues if they arise? Do we need rollback plan?
42+
Do we need a second pair of eyes on this?
43+
-->

.github/workflows/ci-lint-cvat-exchange-oracle.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4
22-
- uses: actions/setup-python@v5
22+
- name: Install Poetry
23+
uses: snok/install-poetry@v1
2324
with:
24-
cache: 'pip'
25-
cache-dependency-path: ${{ env.WORKING_DIR }}/poetry.lock
26-
- run: python -m pip install poetry
25+
version: 1.8.4
2726
- uses: actions/setup-python@v5
2827
with:
2928
python-version: '3.10'

.github/workflows/ci-lint-cvat-recording-oracle.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4
22-
- uses: actions/setup-python@v5
22+
- name: Install Poetry
23+
uses: snok/install-poetry@v1
2324
with:
24-
cache: 'pip'
25-
cache-dependency-path: ${{ env.WORKING_DIR }}/poetry.lock
26-
- run: python -m pip install poetry
25+
version: 1.8.4
2726
- uses: actions/setup-python@v5
2827
with:
2928
python-version: '3.10'

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npx lint-staged
52

63
# Format python file changes

docs/sdk/python/human_protocol_sdk.escrow.escrow_client.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Adds an array of addresses to the trusted handlers list.
119119
)
120120
```
121121

122-
#### bulk_payout(escrow_address, recipients, amounts, final_results_url, final_results_hash, txId, tx_options=None)
122+
#### bulk_payout(escrow_address, recipients, amounts, final_results_url, final_results_hash, txId, force_complete=False, tx_options=None)
123123

124124
Pays out the amounts specified to the workers and sets the URL of the final results file.
125125

@@ -130,6 +130,7 @@ Pays out the amounts specified to the workers and sets the URL of the final resu
130130
* **final_results_url** (`str`) – Final results file url
131131
* **final_results_hash** (`str`) – Final results file hash
132132
* **txId** (`Decimal`) – Serial number of the bulks
133+
* **force_complete** (`Optional`[`bool`]) – (Optional) Indicates if remaining balance should be transferred to the escrow creator
133134
* **tx_options** (`Optional`[`TxParams`]) – (Optional) Additional transaction parameters
134135
* **Return type:**
135136
`None`

docs/sdk/python/human_protocol_sdk.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@
5959
* [Module](human_protocol_sdk.kvstore.kvstore_utils.md#module)
6060
* [`KVStoreData`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreData)
6161
* [`KVStoreUtils`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils)
62+
* [human_protocol_sdk.kvstore.kvstore_utils module](human_protocol_sdk.kvstore.kvstore_utils.md)
63+
* [Code Example](human_protocol_sdk.kvstore.kvstore_utils.md#code-example)
64+
* [Module](human_protocol_sdk.kvstore.kvstore_utils.md#module)
65+
* [`KVStoreData`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreData)
66+
* [`KVStoreData.__init__()`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreData.__init__)
67+
* [`KVStoreUtils`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils)
68+
* [`KVStoreUtils.get()`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils.get)
69+
* [`KVStoreUtils.get_file_url_and_verify_hash()`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils.get_file_url_and_verify_hash)
70+
* [`KVStoreUtils.get_kvstore_data()`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils.get_kvstore_data)
71+
* [`KVStoreUtils.get_public_key()`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils.get_public_key)
6272
* [human_protocol_sdk.operator package](human_protocol_sdk.operator.md)
6373
* [Submodules](human_protocol_sdk.operator.md#submodules)
6474
* [human_protocol_sdk.operator.operator_utils module](human_protocol_sdk.operator.operator_utils.md)

docs/sdk/python/human_protocol_sdk.operator.operator_utils.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ Initializes an LeaderData instance.
4343
* **webhook_url** (`Optional`[`str`]) – Webhook url
4444
* **url** (`Optional`[`str`]) – Url
4545
* **job_types** (`Optional`[`List`[`str`]]) – Job types
46+
* **registration_needed** (`Optional`[`bool`]) – True
47+
* **registration_instructions** (`Optional`[`str`]) – Instructions url
4648
* **reputation_networks** (`Optional`[`List`[`str`]]) – List of reputation networks
47-
* **registration_needed** (`Optional`[`bool`]) – True,
48-
* **registration_instructions** (`Optional`[`str`]) – Instructions url,
4949

5050
### *class* human_protocol_sdk.operator.operator_utils.LeaderFilter(chain_id, role=None)
5151

docs/sdk/python/human_protocol_sdk.staking.staking_client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ staking_client = StakingClient(w3)
5252

5353
Bases: `object`
5454

55-
A class used to manage staking, and allocation on the HUMAN network.
55+
A class used to manage staking on the HUMAN network.
5656

5757
#### \_\_init_\_(w3)
5858

docs/sdk/python/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ pip install human-protocol-sdk[agreement]
3232
* [Submodules](human_protocol_sdk.escrow.md#submodules)
3333
* [human_protocol_sdk.kvstore package](human_protocol_sdk.kvstore.md)
3434
* [Submodules](human_protocol_sdk.kvstore.md#submodules)
35+
* [human_protocol_sdk.kvstore.kvstore_utils module](human_protocol_sdk.kvstore.kvstore_utils.md)
36+
* [Code Example](human_protocol_sdk.kvstore.kvstore_utils.md#code-example)
37+
* [Module](human_protocol_sdk.kvstore.kvstore_utils.md#module)
38+
* [`KVStoreData`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreData)
39+
* [`KVStoreUtils`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils)
3540
* [human_protocol_sdk.operator package](human_protocol_sdk.operator.md)
3641
* [Submodules](human_protocol_sdk.operator.md#submodules)
3742
* [human_protocol_sdk.staking package](human_protocol_sdk.staking.md)

docs/sdk/typescript/base/classes/BaseEthersClient.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The network information required to connect to the contracts
4040

4141
#### Defined in
4242

43-
[base.ts:20](https://github.com/humanprotocol/human-protocol/blob/c89cf662f1f49999499468fbc2c62e830c1f474a/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20)
43+
[base.ts:20](https://github.com/humanprotocol/human-protocol/blob/2adb3114c920b5264832199f17e9531ba585c005/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20)
4444

4545
## Properties
4646

@@ -50,7 +50,7 @@ The network information required to connect to the contracts
5050
5151
#### Defined in
5252

53-
[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/c89cf662f1f49999499468fbc2c62e830c1f474a/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12)
53+
[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/2adb3114c920b5264832199f17e9531ba585c005/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12)
5454

5555
***
5656

@@ -60,4 +60,4 @@ The network information required to connect to the contracts
6060
6161
#### Defined in
6262

63-
[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/c89cf662f1f49999499468fbc2c62e830c1f474a/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11)
63+
[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/2adb3114c920b5264832199f17e9531ba585c005/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11)

0 commit comments

Comments
 (0)