Skip to content

Commit 85b9bab

Browse files
authored
Release 2025-08-13 (#3490)
2 parents 32414c5 + 7dd900d commit 85b9bab

File tree

238 files changed

+2422
-2013
lines changed

Some content is hidden

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

238 files changed

+2422
-2013
lines changed

docs/sdk/python/human_protocol_sdk.constants.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Bases: `Enum`
66

77
Enum for chain IDs.
88

9+
#### AURORA_TESTNET *= 1313161555*
10+
911
#### BSC_MAINNET *= 56*
1012

1113
#### BSC_TESTNET *= 97*
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# human_protocol_sdk.decorators module
2+
3+
### *exception* human_protocol_sdk.decorators.RequiresSignerError
4+
5+
Bases: `Exception`
6+
7+
Raised when a signer or required middleware is missing in the Web3 instance.
8+
9+
### human_protocol_sdk.decorators.requires_signer(method)

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -318,16 +318,14 @@ Gets the job launcher address of the escrow.
318318
)
319319
```
320320

321-
#### get_manifest_hash(escrow_address)
321+
#### get_manifest(escrow_address)
322322

323-
Gets the manifest file hash.
323+
Gets the manifest data (can be a URL or JSON string).
324324

325325
* **Parameters:**
326326
**escrow_address** (`str`) – Address of the escrow
327-
* **Return type:**
328-
`str`
329-
* **Returns:**
330-
Manifest file hash
327+
* **Return str:**
328+
Manifest data
331329
* **Raises:**
332330
[**EscrowClientError**](#human_protocol_sdk.escrow.escrow_client.EscrowClientError) – If an error occurs while checking the parameters
333331
* **Example:**
@@ -341,19 +339,23 @@ Gets the manifest file hash.
341339
w3 = Web3(load_provider_from_uri(URI("http://localhost:8545")))
342340
escrow_client = EscrowClient(w3)
343341

344-
manifest_hash = escrow_client.get_manifest_hash(
342+
manifest = escrow_client.get_manifest(
345343
"0x62dD51230A30401C455c8398d06F85e4EaB6309f"
346344
)
347345
```
346+
* **Return type:**
347+
`str`
348348

349-
#### get_manifest_url(escrow_address)
349+
#### get_manifest_hash(escrow_address)
350350

351-
Gets the manifest file URL.
351+
Gets the manifest file hash.
352352

353353
* **Parameters:**
354354
**escrow_address** (`str`) – Address of the escrow
355-
* **Return str:**
356-
Manifest file url
355+
* **Return type:**
356+
`str`
357+
* **Returns:**
358+
Manifest file hash
357359
* **Raises:**
358360
[**EscrowClientError**](#human_protocol_sdk.escrow.escrow_client.EscrowClientError) – If an error occurs while checking the parameters
359361
* **Example:**
@@ -367,12 +369,10 @@ Gets the manifest file URL.
367369
w3 = Web3(load_provider_from_uri(URI("http://localhost:8545")))
368370
escrow_client = EscrowClient(w3)
369371

370-
url = escrow_client.get_manifest_url(
372+
manifest_hash = escrow_client.get_manifest_hash(
371373
"0x62dD51230A30401C455c8398d06F85e4EaB6309f"
372374
)
373375
```
374-
* **Return type:**
375-
`str`
376376

377377
#### get_recording_oracle_address(escrow_address)
378378

@@ -526,13 +526,13 @@ Bases: `Exception`
526526

527527
Raises when some error happens when interacting with escrow.
528528

529-
### *class* human_protocol_sdk.escrow.escrow_client.EscrowConfig(recording_oracle_address, reputation_oracle_address, exchange_oracle_address, recording_oracle_fee, reputation_oracle_fee, exchange_oracle_fee, manifest_url, hash)
529+
### *class* human_protocol_sdk.escrow.escrow_client.EscrowConfig(recording_oracle_address, reputation_oracle_address, exchange_oracle_address, recording_oracle_fee, reputation_oracle_fee, exchange_oracle_fee, manifest, hash)
530530

531531
Bases: `object`
532532

533533
A class used to manage escrow parameters.
534534

535-
#### \_\_init_\_(recording_oracle_address, reputation_oracle_address, exchange_oracle_address, recording_oracle_fee, reputation_oracle_fee, exchange_oracle_fee, manifest_url, hash)
535+
#### \_\_init_\_(recording_oracle_address, reputation_oracle_address, exchange_oracle_address, recording_oracle_fee, reputation_oracle_fee, exchange_oracle_fee, manifest, hash)
536536

537537
Initializes a Escrow instance.
538538

@@ -541,7 +541,7 @@ Initializes a Escrow instance.
541541
* **reputation_oracle_address** (`str`) – Address of the Reputation Oracle
542542
* **recording_oracle_fee** (`Decimal`) – Fee percentage of the Recording Oracle
543543
* **reputation_oracle_fee** (`Decimal`) – Fee percentage of the Reputation Oracle
544-
* **manifest_url** (`str`) – Manifest file url
544+
* **manifest** (`str`) – Manifest data (can be a URL or JSON string)
545545
* **hash** (`str`) – Manifest file hash
546546

547547
### *class* human_protocol_sdk.escrow.escrow_client.EscrowWithdraw(tx_hash, token_address, amount_withdrawn)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ print(
2222

2323
## Module
2424

25-
### *class* human_protocol_sdk.escrow.escrow_utils.EscrowData(chain_id, id, address, amount_paid, balance, count, factory_address, launcher, status, token, total_funded_amount, created_at, final_results_url=None, intermediate_results_url=None, manifest_hash=None, manifest_url=None, recording_oracle=None, reputation_oracle=None, exchange_oracle=None)
25+
### *class* human_protocol_sdk.escrow.escrow_utils.EscrowData(chain_id, id, address, amount_paid, balance, count, factory_address, launcher, status, token, total_funded_amount, created_at, final_results_url=None, intermediate_results_url=None, manifest_hash=None, manifest=None, recording_oracle=None, reputation_oracle=None, exchange_oracle=None)
2626

2727
Bases: `object`
2828

29-
#### \_\_init_\_(chain_id, id, address, amount_paid, balance, count, factory_address, launcher, status, token, total_funded_amount, created_at, final_results_url=None, intermediate_results_url=None, manifest_hash=None, manifest_url=None, recording_oracle=None, reputation_oracle=None, exchange_oracle=None)
29+
#### \_\_init_\_(chain_id, id, address, amount_paid, balance, count, factory_address, launcher, status, token, total_funded_amount, created_at, final_results_url=None, intermediate_results_url=None, manifest_hash=None, manifest=None, recording_oracle=None, reputation_oracle=None, exchange_oracle=None)
3030

3131
Initializes an EscrowData instance.
3232

@@ -46,7 +46,7 @@ Initializes an EscrowData instance.
4646
* **final_results_url** (`Optional`[`str`]) – URL for final results.
4747
* **intermediate_results_url** (`Optional`[`str`]) – URL for intermediate results.
4848
* **manifest_hash** (`Optional`[`str`]) – Manifest hash.
49-
* **manifest_url** (`Optional`[`str`]) – Manifest URL.
49+
* **manifest** (`Optional`[`str`]) – Manifest data (JSON/URL).
5050
* **recording_oracle** (`Optional`[`str`]) – Recording Oracle address.
5151
* **reputation_oracle** (`Optional`[`str`]) – Reputation Oracle address.
5252
* **exchange_oracle** (`Optional`[`str`]) – Exchange Oracle address.

docs/sdk/python/human_protocol_sdk.escrow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ obtain information from both the contracts and subgraph.
2525
* [`EscrowClient.get_factory_address()`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient.get_factory_address)
2626
* [`EscrowClient.get_intermediate_results_url()`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient.get_intermediate_results_url)
2727
* [`EscrowClient.get_job_launcher_address()`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient.get_job_launcher_address)
28+
* [`EscrowClient.get_manifest()`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient.get_manifest)
2829
* [`EscrowClient.get_manifest_hash()`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient.get_manifest_hash)
29-
* [`EscrowClient.get_manifest_url()`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient.get_manifest_url)
3030
* [`EscrowClient.get_recording_oracle_address()`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient.get_recording_oracle_address)
3131
* [`EscrowClient.get_reputation_oracle_address()`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient.get_reputation_oracle_address)
3232
* [`EscrowClient.get_results_url()`](human_protocol_sdk.escrow.escrow_client.md#human_protocol_sdk.escrow.escrow_client.EscrowClient.get_results_url)

docs/sdk/python/human_protocol_sdk.filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Initializes a EscrowFilter instance.
1717
* **recording_oracle** (`Optional`[`str`]) – Recording oracle address
1818
* **exchange_oracle** (`Optional`[`str`]) – Exchange oracle address
1919
* **job_requester_id** (`Optional`[`str`]) – Job requester id
20-
* **status** (`Optional`[[`Status`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Status)]) – Escrow status
20+
* **status** (`Union`[[`Status`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Status), `List`[[`Status`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Status)], `None`]) – Escrow status
2121
* **date_from** (`Optional`[`datetime`]) – Created from date
2222
* **date_to** (`Optional`[`datetime`]) – Created to date
2323
* **first** (`int`) – Number of items per page

docs/sdk/python/human_protocol_sdk.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125

126126
* [human_protocol_sdk.constants module](human_protocol_sdk.constants.md)
127127
* [`ChainId`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId)
128+
* [`ChainId.AURORA_TESTNET`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.AURORA_TESTNET)
128129
* [`ChainId.BSC_MAINNET`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.BSC_MAINNET)
129130
* [`ChainId.BSC_TESTNET`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.BSC_TESTNET)
130131
* [`ChainId.LOCALHOST`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.LOCALHOST)
@@ -202,5 +203,6 @@
202203
* [`get_staking_interface()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.get_staking_interface)
203204
* [`handle_error()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.handle_error)
204205
* [`parse_transfer_transaction()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.parse_transfer_transaction)
206+
* [`validate_json()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.validate_json)
205207
* [`validate_url()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.validate_url)
206208
* [`with_retry()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.with_retry)

docs/sdk/python/human_protocol_sdk.utils.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ Parse a transfer transaction receipt.
101101
* **Returns:**
102102
A tuple indicating if HMT was transferred and the transaction balance
103103

104+
### human_protocol_sdk.utils.validate_json(data)
105+
106+
Validates if the given string is a valid JSON.
107+
:type data: `str`
108+
:param data: String to validate
109+
:rtype: `bool`
110+
:return: True if the string is a valid JSON, False otherwise
111+
104112
### human_protocol_sdk.utils.validate_url(url)
105113

106114
Validates the given URL.

docs/sdk/python/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,6 @@ pip install human-protocol-sdk[agreement]
7575
* [`get_staking_interface()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.get_staking_interface)
7676
* [`handle_error()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.handle_error)
7777
* [`parse_transfer_transaction()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.parse_transfer_transaction)
78+
* [`validate_json()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.validate_json)
7879
* [`validate_url()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.validate_url)
7980
* [`with_retry()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.with_retry)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Class: `abstract` BaseEthersClient
88

9-
Defined in: [base.ts:10](https://github.com/humanprotocol/human-protocol/blob/9da418b6962e251427442717195921599d2815f2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L10)
9+
Defined in: [base.ts:10](https://github.com/humanprotocol/human-protocol/blob/5b6e90353814741f056deb2914334a3c4fbc279d/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L10)
1010

1111
## Introduction
1212

@@ -24,7 +24,7 @@ This class is used as a base class for other clients making on-chain calls.
2424

2525
> **new BaseEthersClient**(`runner`, `networkData`): `BaseEthersClient`
2626
27-
Defined in: [base.ts:20](https://github.com/humanprotocol/human-protocol/blob/9da418b6962e251427442717195921599d2815f2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20)
27+
Defined in: [base.ts:20](https://github.com/humanprotocol/human-protocol/blob/5b6e90353814741f056deb2914334a3c4fbc279d/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20)
2828

2929
**BaseClient constructor**
3030

@@ -52,12 +52,12 @@ The network information required to connect to the contracts
5252

5353
> **networkData**: [`NetworkData`](../../types/type-aliases/NetworkData.md)
5454
55-
Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/9da418b6962e251427442717195921599d2815f2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12)
55+
Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/5b6e90353814741f056deb2914334a3c4fbc279d/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12)
5656

5757
***
5858

5959
### runner
6060

6161
> `protected` **runner**: `ContractRunner`
6262
63-
Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/9da418b6962e251427442717195921599d2815f2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11)
63+
Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/5b6e90353814741f056deb2914334a3c4fbc279d/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11)

0 commit comments

Comments
 (0)