Human Protocol SDK
v4.0.0
v4.0.0
  • Typescript SDK
    • Encryption
      • Encryption
      • EncryptionUtils
    • Escrow
      • EscrowClient
      • EscrowUtils
    • KVStore
      • KVStoreClient
      • KVStoreUtils
    • Staking
      • StakingClient
    • Operator
      • OperatorUtils
    • Storage
      • StorageClient
    • Statistics
      • StatisticsClient
    • Transaction
      • TransactionUtils
  • Python SDK
    • agreement
      • bootstrap
      • measures
      • utils
    • encryption
      • encryption
      • legacy_encryption
      • encryption_utils
    • escrow
      • escrow_client
      • escrow_utils
    • kvstore
      • kvstore_client
      • kvstore_utils
    • staking
      • staking_client
      • staking_utils
    • operator
      • operator_utils
    • statistics
      • statistics_client
    • storage
      • storage_client
      • storage_utils
    • transaction
      • transaction_utils
    • constants
    • filter
    • utils
  • CHANGELOG
Powered by GitBook
On this page
  • Changelog
  • How to upgrade
  • Typescript
  • Python

CHANGELOG

Items marked with the ⚠️ icon indicate breaking changes.

Changelog

Added

  • Add a withdraw function:

    • This allows trusted handlers to withdraw tokens from the escrow contract, even if they are not the funding token.

    • This change helps prevent tokens from being accidentally locked in the contract.

  • Add a force complete parameter to the bulk payout function, It forces escrow completion by sending the remaining balance of the escrow back to the job launcher.

  • Add sorting and pagination to get leaders.

Changed

  • Update subgraph IDs.

  • ⚠️ Update the leader entity:

    • Remove amount allocated.

    • Remove reputation.

    • Add reputation networks.

  • Modify getTransactions in the transaction utils to include internal transaction data.

Deprecated

Removed

  • Remove reward pool address because the contract has been deleted.

  • ⚠️ Delete create and setup escrow functions. The new launching order is:

    1. Create

    2. Fund

    3. Setup

  • ⚠️ Delete the escrow abort function.

  • ⚠️ Remove all allocation-related functions from the staking client.

Fixed

  • Sync documentation with the code.

Security

How to upgrade

Typescript

yarn

yarn upgrade @human-protocol/sdk

npm

npm update @human-protocol/sdk

Python

pip install --upgrade human-protocol-sdk

Last updated 3 months ago