Skip to content

Releases: oceanprotocol/ocean.py

v0.8.2

30 Sep 10:44
a406e5c
Compare
Choose a tag to compare
  • Added compute-to-data flow README;
  • Fixed marketplace-flow README;
  • Fixed block_confirmations logic for ganache;
  • Update all READMEs to use ExampleConfig.

v0.8.1

27 Sep 10:18
f140f83
Compare
Choose a tag to compare
  • allow same-block confirmations

v0.8.0

27 Sep 06:24
1372bf0
Compare
Choose a tag to compare

Breaking Changes

  • The following methods no longer return the compute job results URL.
    • OceanCompute.result()
    • DataServiceProvider.get_compute_status()
    • DataServiceProvider.get_compute_result()

Non-breaking changes

  • Added support for the computeResult endpoint for getting the compute job results URL:
    • OceanCompute.result_file()
    • DataServiceProvider.compute_job_result_file()
  • Replace Travis with GitHub Actions

v0.7.0

23 Sep 23:13
b85ad1f
Compare
Choose a tag to compare

Breaking Changes

  • Add block_confirmations attribute to Wallet

Non-breaking changes

  • Add wait_for_transaction_receipt_and_block_confirmations function. Called any time a transaction is sent, thus making all transactions "blocking".
  • Add block_confirmations attribute to Config
  • Add BLOCK_CONFIRMATIONS envvar
  • Add eth-network.block_confirmations config.ini option
  • Add send_dummy_transactions and StoppableThread for use in unit tests. Needed for testing wait_for_transaction_receipt_and_block_confirmations because Ganache doesn't mine new blocks unless new transactions are sent.
  • Add Integer wrapper class to allow passing int by reference. Use case: The user creates a Wallet using config.block_confirmations but then changes the config.block_confirmations attribute value, The Wallet will use the new value.
  • Add hard-coded BLOCK_NUMBER_POLL_INTERVAL which maps chain_id to poll interval.
  • Use c2d address in pay for service.
  • Fix OceanPool._get_all_liquidity_records method()
  • Fix typo in marketplace-flow.md
  • Add get_web3() utility that injects geth-poa-middleware when on Rinkeby

v0.6.1

16 Sep 09:46
2e072ca
Compare
Choose a tag to compare

Update ocean-contracts dependency to 0.6.7

v0.6.0

15 Sep 17:21
98bcb0d
Compare
Choose a tag to compare

Breaking changes

  • remove unnecessary properties across ocean.py models, unused and obsolete functions
  • remove possibility of creating a wallet with encrypted key and password
  • replace NETWORK_URL env var with OCEAN_NETWORK_URL
  • add a wei interface and replace all amounts to wei. The ocean.py wei interface now supports custom number of decimals and helps with amount conversion.
  • more strict variable type enforcement
  • changed ganache keys in readmes, pytest.ini and tox.ini

Non-breaking changes

  • added supplementary check for provider URLs. Make sure there’s a Provider-like interface at the other end, not only that the link works.
  • README improvements
  • accomodate publisherTrustedAlgorithmPublishers in DataServiceProvider and OceanCompute, allowing algorithms to be trusted based on their publisher, not only on their individual DIDs
  • add support for Moonbeam Alpha network
  • add asset encryption
  • implemented a function that searches the exchange by data token address
  • replace underlying usage of get_event_logs with getLogs
  • remove obsolete Sphinx documentation
  • optimise tests

v0.5.30

06 Aug 22:45
d0be072
Compare
Choose a tag to compare
  • Remove logic that would retry failed transactions (#424)
  • Add credential validation for values, remove an unused function in credentials.py (#422)
  • Fix DataServiceProvider.write_file() destination_folder parameter type hint (#430)

v0.5.29

04 Aug 10:56
fd94861
Compare
Choose a tag to compare

Fixes an overzealous typing enforcement in the previous version.

v0.5.28

04 Aug 06:05
e535db5
Compare
Choose a tag to compare

This version of Ocean lib brings important new features:

  • Blocking calls: failed and delayed transactions were previously a source of issues for users. Now, the library uses blocking calls to prevent inconsistencies.
  • Strong typing: as of now, Ocean contains type hints and type enforcements on almost every component and function. This is done to regulate proper usage. Please adapt to using the correct types starting this version.
  • rename the CONFIG_FILE environment variable to OCEAN_CONFIG_FILE, to avoid clashes with other config files you might set inside the same environment.

Other changes:

  • documentation improvements
  • removing unused code

v0.5.27

23 Jul 09:45
3ce8006
Compare
Choose a tag to compare
  • Added support for BSC

  • Fix code and logic duplication in event retrieval

  • Fix address_file() - return address.json file, not artifacts directory

  • Remove ABI Mismatch warnings