InjectiveLabs / sdk-python

Injective Exchange API for Python clients
Apache License 2.0
41 stars 27 forks source link

Release/v1.7.0 #347

Closed aarmoa closed 1 month ago

aarmoa commented 1 month ago

Created this PR to release all the latest changes in dev branch to master for version 1.7.0

Summary by CodeRabbit

Release Notes for Version 1.7.0

coderabbitai[bot] commented 1 month ago

Walkthrough

The recent update to the project introduces OFAC (Office of Foreign Assets Control) address validations, enhancing compliance by checking restricted addresses before processing transactions. Key changes include the addition of the OfacChecker class, integration of OFAC checks in transaction methods, and updates to configuration files reflecting new trading pairs. A new JSON file stores sanctioned addresses, and tests have been added to ensure proper enforcement of these compliance measures.

Changes

File Change Summary
CHANGELOG.md Added summary for version 1.7.0, highlighting OFAC validations and compliance enhancements.
pyinjective/composer.py Integrated OfacChecker for address validation in MsgGrantGeneric and MsgGrantTyped methods.
pyinjective/core/broadcaster.py Added OfacChecker to BroadcasterAccountConfig for checking blacklisted trading addresses during initialization.
pyinjective/denoms_devnet.ini Removed multiple cryptocurrency trading pairs; added new pairs with updated parameters.
pyinjective/ofac.json Introduced a JSON file containing a list of Ethereum addresses related to OFAC sanctions for compliance verification.
pyinjective/ofac.py Added OfacChecker class for managing OFAC address checks, including methods for downloading and checking the blacklist.
pyinjective/proto/google/api/client_pb2.py Added ExperimentalFeatures field in PythonSettings for asynchronous I/O operations.
pyproject.toml Updated package version from 1.6.3 to 1.7.0.
tests/core/test_broadcaster.py Created TestBroadcastAddressInOfacList to ensure compliance when broadcasting from blacklisted addresses.
tests/test_composer_deprecation_warnings.py Updated market_id parameters across multiple test cases to new hexadecimal strings.

Possibly related PRs

Suggested reviewers

Poem

In the garden of code, we hop and play,
With OFAC checks brightening the way.
No more blacklisted addresses near,
Compliance and safety, we hold dear.
So let’s dance and cheer, oh what a sight,
For a secure future, all feels just right! 🐇✨


Recent review details **Configuration used: .coderabbit.yaml** **Review profile: CHILL**
Commits Files that changed from the base of the PR and between dd30c82f667a8a03bab756c24067683b47b34344 and 0592ef233d4446c38854c4a9199331483fffc839.
Files ignored due to path filters (1) * `poetry.lock` is excluded by `!**/*.lock`
Files selected for processing (1) * pyproject.toml (2 hunks)
Files skipped from review as they are similar to previous changes (1) * pyproject.toml
---
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: -- `I pushed a fix in commit , please review it.` -- `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: -- `@coderabbitai generate unit testing code for this file.` -- `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: -- `@coderabbitai generate interesting stats about this repository and render them as a table.` -- `@coderabbitai read src/utils.ts and generate unit testing code.` -- `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` -- `@coderabbitai help me debug CodeRabbit configuration file.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (Invoked using PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. ### Other keywords and placeholders - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. - Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description. - Add `@coderabbitai` anywhere in the PR title to generate the title automatically. ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
socket-security[bot] commented 1 month ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
pypi/aiohappyeyeballs@2.4.0 network 0 81.2 kB bdraco
pypi/certifi@2024.8.30 filesystem 0 313 kB Lukasa
pypi/cffi@1.17.1 None 0 0 B
pypi/eth-account@0.11.3 environment, filesystem, shell 0 1.87 MB carver, fselmo, kclowes, ...1 more
pypi/eth-typing@4.4.0 None 0 61.5 kB carver, cburgdorf, fselmo, ...5 more
pypi/eth-utils@4.1.1 environment, filesystem, network, shell, unsafe 0 567 kB carver, cburgdorf, fselmo, ...5 more
pypi/filelock@3.16.1 None 0 0 B
pypi/grpcio-tools@1.66.1 environment, eval, filesystem, shell, unsafe 0 28.8 MB google_opensource, grpc-packages
pypi/grpcio@1.66.1 None 0 0 B
pypi/hdwallets@0.1.2 None 0 37.6 kB hukkinj1
pypi/hexbytes@0.3.1 None 0 20 kB carver, fselmo, kclowes, ...2 more
pypi/identify@2.6.1 environment, filesystem 0 373 kB asottile, ckuehl
pypi/idna@3.10 filesystem, network 0 1.14 MB kjd
pypi/iniconfig@2.0.0 filesystem 0 15.4 kB hpk, ronny
pypi/isort@5.13.1 environment, eval, filesystem, network, shell, unsafe 0 870 kB static, timothycrosley
pypi/jsonschema-specifications@2023.12.1 environment, filesystem 0 63.5 kB
pypi/jsonschema@4.23.0 environment, filesystem, network, shell 0 3.06 MB
pypi/lru-dict@1.2.0 filesystem, unsafe 0 142 kB Amit.Dev

🚮 Removed packages: pypi/aiohappyeyeballs@2.3.4, pypi/aiohttp@3.10.1, pypi/base58@2.1.1, pypi/bip32@3.4, pypi/certifi@2024.7.4, pypi/cffi@1.17.0, pypi/coincurve@18.0.0, pypi/eip712@0.2.7, pypi/eth-account@0.11.2, pypi/eth-typing@3.5.2, pypi/eth-utils@2.3.1, pypi/filelock@3.15.4, pypi/grpcio@1.65.4

View full report↗︎