Skip to content

Latest commit

 

History

History
368 lines (271 loc) · 12.3 KB

CHANGELOG.md

File metadata and controls

368 lines (271 loc) · 12.3 KB

Changelog

All notable changes to this project will be documented in this file.

[1.8.1] - 2024-12-04

Changed

  • Updated OFAC list link and contents

[1.8.0] - 2024-11-14

Changed

  • The markets initialization in AsyncClient has been modified to get markets information from the chain endpoints instead of the Indexer endpoints

Removed

  • Removed the legacy deprecated markets and tokens initialization using the denoms INI files in the SDK. Removed also the INI files from the SDK

[1.7.2] - 2024-11-13

Fixed

  • Fixed link to official ofac.json file
  • Refreshed the local copy of the file after the update

[1.7.1] - 2024-09-24

Fixed

  • Fixed logic to get the absolute ofac.json file path

[1.7.0] - 2024-09-19

Added

  • Added OFAC restricted addresses validations

[1.6.3]

Fixed

  • Updated reference gas cost for messages in the gas limit estimator after chain upgrade v1.13

[1.6.2]

Fixed

  • Fixed issue in the listen_derivative_market_updates method in the AsyncClient class

[1.6.1] - 2024-08-07

Added

  • Added support for the following messages in the chain "exchange" module:
    • MsgDecreasePositionMargin
    • MsgUpdateSpotMarket
    • MsgUpdateDerivativeMarket
    • MsgAuthorizeStakeGrants
    • MsgActivateStakeGrant

[1.6.0] - 2024-07-30

Added

  • Support for all queries in the chain "tendermint" module
  • Support for all queries in the "IBC Transfer" module
  • Support for all queries in the "IBC Channel" module
  • Support for all queries in the "IBC Client" module
  • Support for all queries in the "IBC Connection" module
  • Support for all queries and messages in the chain "permissions" module
  • Tokens initialization from the official tokens list in https://github.com/InjectiveLabs/injective-lists

Changed

  • Updated all proto definitions based on chain upgrade to v1.13
  • Refactored cookies management logic to use all gRPC calls' responses to update the current cookies

[1.5.4] - 2024-07-03

Changed

  • Fixed all import statements in pyinjective.proto modules to make them explicit

[1.4.4] - 2024-07-03

Changed

  • Fixed all import statements in pyinjective.proto modules to make them explicit

[1.5.3] - 2024-06-12

Changed

  • Changed parameter key from the PaginationOption class.
  • Fixed an error when using the next page key in PaginationOption, causing incorrect pagination responses.

[1.4.3] - 2024-06-06

Changed

  • Fixed protobuf dependency version to "<5" to for the v1.4 branch, because newer versions require a code refactoring (done in v1.5)
  • Fixed protobuf dependency version to "<5" for the v1.4 branch because newer versions require a code refactoring (done in v1.5)

[1.5.2] - 2024-05-10

Changed

  • Updated protobuf dependency version to ">=5.26.1"

[1.5.1] - 2024-05-02

Changed

  • Updated calls to json_format.MessageToDict for compliance with the new version of the protobuf library

[1.5.0] - 2024-04-19

Changed

  • Refactoring in Network class to support mixed secure and insecure endpoints.
  • Marked the Network parameter use_secure_connection as deprecated.

[1.4.2] - 2024-03-19

Changed

  • Updated aiohttp dependency version to ">=3.9.2" to solve a security vulnerability detected by Dependabot

[1.4.1] - 2024-03-12

Changed

  • Updates example scripts that were still using deprecated methods

[1.4.0] - 2024-03-11

Added

  • Added support for all queries and messages in the chain 'distribution' module
  • Added support for all queries and messages in the chain 'exchange' module
  • Use of python-dotenv in all example scripts to load private keys from a .env file

[1.3.1] - 2024-02-29

Changed

  • Updated cookie assistant logic to support the Indexer exchange server not using cookies and the chain server using them

[1.3.0] - 2024-02-12

Changed

  • Removed asyncio from the dependencies

[1.2.0] - 2024-01-25

Changed

  • Updated reference gas cost for all messages in the gas estimator
  • Included different calculation for Post Only orders
  • Updated all proto definitions for Injective Core 1.12.1

[1.1.1] - 2024-01-18

Changed

  • Updated the logic to create a MsgLiquidatePosition message

[1.1.0] - 2024-01-15

Added

  • Added new functions in all Market classes to convert values from extended chain format (the ones provided by chain streams) into human-readable format

Changed

  • Updated proto definitions for Indexer node using version v1.12.79.1
  • Updated market and tokens INI configuration files

[1.0.1] - 2024-01-08

Added

  • Added low level API components for all modules (chain, exchain and explorer) to make the Python SDK compatible with the TypeScript SDK.
  • Added support for all wasm module messages.
  • Added support for all token factory module messages.

Changed

  • Updated proto definitions to injective-core v1.12.0 and injective-indexer v1.12.72
  • Added new functions in AsyncClient to interact with chain, exchange and explorer using the low level API components
  • Marked old function sin AsyncClient as deprecated (the functions will be removed in a future version)
  • Updated all API examples to use the new AsyncClient functions

[1.0] - 2023-11-01

Added

  • Added logic to support use of Client Order ID (CID) new identifier in OrderInfo
  • New chain stream support

Changed

  • Remove support for sentry nodes in mainnet network. The only supported node option in mainnet is lb
  • Migrated all proto objects dependency to support chain version 1.22
  • Moved changelog from the README.md file to its own CHANGELOG.md file
  • Remove aiocron dependency. Use plain asyncio tasks to solve the timeout height synchronization
  • Updated the gas fee buffer used to calculate fee consumption in all examples
  • Refactored logic in AsyncClient to load markets and tokens, to ensure there are no duplicated tokens with the same denom

[0.9.12]

  • Synchronized markets and tokens config files to add KIRA/INJ, NINJA/INJ, KATANA/INJ, BRETT/INJ and nINJ/INJ spot markets

[0.9.11]

  • Synchronized markets and tokens config files to add SEI/USDT and TIA/USDT perpetual markets

[0.9.10]

  • Synchronized markets and tokens config files to add SOL/USDT spot market

[0.9.9]

  • Synchronized markets and tokens config files to add USDY/USDT and WHALE/USDT spot markets

[0.9.8]

  • Synchronized markets and tokens config files to add PYTH/USDT spot market

[0.9.7]

  • Added PYTH/USDT PERP market info in mainnet metadata ini file

[0.9.6]

  • Synchronized denom ini files with Indexer information for mainnet, testnet and devnet to include TALIS/INJ and KUJI/USDT markets

[0.9.5]

  • Updated fetch_metadata script (to synchronize denom ini files) to reuse logic in AsyncClient
  • Synchronized denom ini files with Indexer information for mainnet, testnet and devnet

[0.9.4]

  • Added TIA/USDT spot market in mainnet and testnet ini file

[0.9.3]

  • Updated TIA/USDT-30NOV2023 market id in denoms_mainnet.ini file

[0.9.2]

  • Added fix to the grpc import error in Mac with M1 and M2 chips

[0.9.1]

  • Added new spot markets in mainnet ini file: KAVA/USDT, USDTkv/USDT
  • Added new derivative markets in mainnet ini file: TIA/USDT-30NOV2023, AXL/USDT, BTC/USDTkv, ETH/USDTkv

[0.9.0]

  • Improvement in broadcaster to initialize the account sequence number and the timeout height only when required
  • Replace Pipenv with Poetry
  • Add pre-commit validations to the project
  • Add a GitHub workflow to run all tests and calculate coverage for each PR

[0.8.5]

  • Added NEOK/USDT and ORAI/USDT spot markets to the mainnet .ini file

[0.8.4]

  • Added methods to SpotMarket, DerivativeMarket and BianaryOptionMarket to translate chain prices and quantities to human-readable format.

[0.8.3]

  • Fix dependency issue in setup.py.

[0.8.2]

  • Add web3 library as a dependency for the project.

[0.8.1]

  • Moved the configuration to use a secure or insecure connection inside the Network class. The AsyncClient's insecure parameter is no longer used for anything and will be removed in the future.
  • Made the new load balanced bare-metal node the default one for mainnet (it is called lb). The legacy one (load balanced k8s node) is called lb_k8s

[0.8]

  • Refactor Composer to be created with all the markets and tokens. The Composer now uses the real markets and tokens to convert human-readable values to chain format
  • The Composer can still be instantiated without markets and tokens. When markets and tokens are not provided the Composer loads the required information from the Denoms used in previous versions
  • Change in AsyncClient to be able to create Composer instances for the client network, markets and tokens
  • Examples have been adapted to create Composer instances using the AsyncClient
  • Added new nodes (bare-metal load balancing nodes) for mainnet and testnet
  • Deprecated the kubernetes load balanced nodes for testnet
  • Refactored the cookies management logic into a cookie assistant. Added the required logic to support the new cookies format for bare-metal load balanced nodes
  • Removed class Client. The only supported now is the async version called AsyncClient.

[0.7.1.1]

  • Fixed Testnet network URLs

[0.7.2.1]

  • Synchronization of denoms configuration files.

[0.7.2]

  • Added a new gas limit calculation for the TransactionBroadcaster that estimates the value based on the messages in the transaction (without running the transaction simulation).

[0.7.1.2]

  • Add NBLA

[0.7.1.1]

  • Fixed Testnet network URLs

[0.7.1]

  • Include implementation of the TransactionBroadcaster, to simplify the transaction creation and broadcasting process.

[0.7.0.6]

  • ADD SEI/USDT in metadata

[0.7.0.5]

  • Added the required logic in the MsgSubaccountTransfer message to translate amounts and token into the correct amount and token name representation for the chain

[0.7.0.4]

  • Synchronized decimals for ATOM and WETH in Testnet with the configuration provided by the indexer

[0.7.0.3]

  • Add FRCOIN testnet

[0.7.0.2]

  • Removed from AsyncClient all references to the deprecated OrderBook RPC endpoints (replaced them with OrderBookV2)
  • Updated all orderbook examples

[0.7]

  • Removed references to pysha3 library (and also eip712-struct that required it) and replaced it with other implementation to allow the project to work with Python 3.11
  • Updated sentry nodes LCD URL, for each sentry node to use its own service

[0.6.5]

  • Removed k8s from the list of supported mainnet nodes (lb should be used instead)

[0.6.4]

  • Change logging logic to use different loggers for each module and class
  • Solved issue preventing requesting spot and derivative historical orders for more than one market_id
  • Add pytest as a development dependency to implement and run unit tests

[0.6.3.3]

  • Update the code to the new structure of transaction responses

[0.6.3.1]

  • Update the code to the new structure of transaction simulation responses

[0.6.2.7]

  • Fix margin calculation in utils

[0.6.2.1]

  • Remove version deps from Pipfile

[0.6.2.0]

  • Add MsgUnderwrite, MsgRequestRedemption in Composer

[0.6.1.8]

  • Add MsgCreateInsuranceFund in Composer
  • Re-gen mainnet denoms

[0.6.1.5]

  • Add MsgExecuteContract in Composer

[0.6.1.4]

  • Add wMATIC

[0.6.1.2]

  • Add OrderbookV2 method in async client

[0.6.1.1]

  • Add ARB/USDT

[0.6.0.9]

  • Deprecate K8S and set LB as default
  • Proto re-gen

[0.6.0.8]

  • Add USDCfr

[0.6.0.7]

  • Add LDO

[0.6.0.6]

  • Set default testnet endpoints to K8S
  • Remove LB config for testnet
  • Fix relative imports in composer
  • Add AccountPortfolio & StreamAccountPortfolio

[0.6.0.5]

  • Add new testnet endpoints
  • Re-gen mainnet denoms

[0.6.0.4]

  • Remove explicit versions from protobuf and grpcio-tools dependencies

[0.6.0.2]

  • Re-gen mainnet denoms

[0.6.0.0]

  • Change default network to LB
  • Re-gen mainnet denoms

[0.5.9.7]

  • Re-gen mainnet denoms

[0.5.9.6]

  • Re-gen proto

[0.5.9.5]

  • Add orderbook snaphot methods

[0.5.9.4]

  • Re-gen mainnet denoms

[0.5.9.4]

  • Re-gen mainnet denoms

[0.5.9.2]

  • Fix margin conversion for binary options

[0.5.9.1]

  • Add skip/limit to BinaryOptionsMarketsRequest

[0.5.9.0]

  • Re-gen proto
  • Fix MsgRewardsOptOut
  • Remove pysha3 dependency

[0.5.8.8]

  • Add grpc_explorer_endpoint in Network
  • Add explorer channel and stub

BREAKING CHANGES

  • Clients using Custom Network must now set grpc_explorer_endpoint during init