Skip to content

Commit 111373d

Browse files
committed
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python into feat/add_support_exchange_v2
2 parents 4980b41 + 1764dd9 commit 111373d

File tree

6 files changed

+55
-25
lines changed

6 files changed

+55
-25
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22

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

5+
## [1.9.0] - 9999-99-99
6+
### Added
7+
- Added support for Exchange V2 proto queries and types
8+
- Updated all chain exchange module examples to use the new Exchange V2 proto queries and types
9+
10+
### Removed
11+
- Removed all methods marked as deprecated in AsyncClient and Composer
12+
13+
## [1.8.0] - 9999-99-99
14+
### Changed
15+
- The markets initialization in AsyncClient has been modified to get markets information from the chain endpoints instead of the Indexer endpoints
16+
17+
### Removed
18+
- Removed the legacy deprecated markets and tokens initialization using the denoms INI files in the SDK. Removed also the INI files from the SDK
19+
20+
## [1.7.2] - 2024-11-13
21+
### Fixed
22+
- Fixed link to official `ofac.json` file
23+
- Refreshed the local copy of the file after the update
24+
525
## [1.7.1] - 2024-09-24
626
### Fixed
727
- Fixed logic to get the absolute ofac.json file path

pyinjective/ofac.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
import aiohttp
66

7-
OFAC_LIST_URL = "https://raw.githubusercontent.com/InjectiveLabs/injective-lists/master/wallets/ofac.json"
7+
OFAC_LIST_URL = (
8+
"https://raw.githubusercontent.com/InjectiveLabs/injective-lists/refs/heads/master/json/wallets/ofac.json"
9+
)
810
OFAC_LIST_FILENAME_DEFAULT = "ofac.json"
911
OFAC_LIST_FILENAME = OFAC_LIST_FILENAME_DEFAULT
1012

tests/core/test_gas_limit_estimator.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
from pyinjective.proto.cosmos.gov.v1beta1 import tx_pb2 as gov_tx_pb
2222
from pyinjective.proto.cosmwasm.wasm.v1 import tx_pb2 as wasm_tx_pb
2323
from pyinjective.proto.injective.exchange.v1beta1 import tx_pb2 as injective_exchange_tx_pb
24-
from tests.model_fixtures.markets_fixtures import btc_usdt_perp_market # noqa: F401
25-
from tests.model_fixtures.markets_fixtures import first_match_bet_market # noqa: F401
26-
from tests.model_fixtures.markets_fixtures import inj_token # noqa: F401
27-
from tests.model_fixtures.markets_fixtures import inj_usdt_spot_market # noqa: F401
28-
from tests.model_fixtures.markets_fixtures import usdt_perp_token # noqa: F401
29-
from tests.model_fixtures.markets_fixtures import usdt_token # noqa: F401
24+
from tests.model_fixtures.markets_fixtures import ( # noqa: F401
25+
btc_usdt_perp_market,
26+
first_match_bet_market,
27+
inj_token,
28+
inj_usdt_spot_market,
29+
usdt_perp_token,
30+
usdt_token,
31+
)
3032

3133

3234
class TestGasLimitEstimator:

tests/core/test_market.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
from pyinjective.constant import ADDITIONAL_CHAIN_FORMAT_DECIMALS
44
from pyinjective.core.market import BinaryOptionMarket, DerivativeMarket, SpotMarket
55
from pyinjective.utils.denom import Denom
6-
from tests.model_fixtures.markets_fixtures import btc_usdt_perp_market # noqa: F401
7-
from tests.model_fixtures.markets_fixtures import first_match_bet_market # noqa: F401
8-
from tests.model_fixtures.markets_fixtures import inj_token # noqa: F401
9-
from tests.model_fixtures.markets_fixtures import inj_usdt_spot_market # noqa: F401
10-
from tests.model_fixtures.markets_fixtures import usdt_perp_token # noqa: F401
11-
from tests.model_fixtures.markets_fixtures import usdt_token # noqa: F401; noqa: F401
6+
from tests.model_fixtures.markets_fixtures import ( # noqa: F401
7+
btc_usdt_perp_market,
8+
first_match_bet_market,
9+
inj_token,
10+
inj_usdt_spot_market,
11+
usdt_perp_token,
12+
usdt_token,
13+
)
1214

1315

1416
class TestSpotMarket:

tests/test_composer.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
from pyinjective.constant import ADDITIONAL_CHAIN_FORMAT_DECIMALS, INJ_DECIMALS
99
from pyinjective.core.network import Network
1010
from pyinjective.core.token import Token
11-
from tests.model_fixtures.markets_fixtures import btc_usdt_perp_market # noqa: F401
12-
from tests.model_fixtures.markets_fixtures import first_match_bet_market # noqa: F401
13-
from tests.model_fixtures.markets_fixtures import inj_token # noqa: F401
14-
from tests.model_fixtures.markets_fixtures import inj_usdt_spot_market # noqa: F401
15-
from tests.model_fixtures.markets_fixtures import usdt_perp_token # noqa: F401
16-
from tests.model_fixtures.markets_fixtures import usdt_token # noqa: F401
11+
from tests.model_fixtures.markets_fixtures import ( # noqa: F401
12+
btc_usdt_perp_market,
13+
first_match_bet_market,
14+
inj_token,
15+
inj_usdt_spot_market,
16+
usdt_perp_token,
17+
usdt_token,
18+
)
1719

1820

1921
class TestComposer:

tests/test_composer_deprecation_warnings.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55

66
from pyinjective.composer import Composer
77
from pyinjective.core.network import Network
8-
from tests.model_fixtures.markets_fixtures import btc_usdt_perp_market # noqa: F401
9-
from tests.model_fixtures.markets_fixtures import first_match_bet_market # noqa: F401
10-
from tests.model_fixtures.markets_fixtures import inj_token # noqa: F401
11-
from tests.model_fixtures.markets_fixtures import inj_usdt_spot_market # noqa: F401
12-
from tests.model_fixtures.markets_fixtures import usdt_perp_token # noqa: F401
13-
from tests.model_fixtures.markets_fixtures import usdt_token # noqa: F401
8+
from tests.model_fixtures.markets_fixtures import ( # noqa: F401
9+
btc_usdt_perp_market,
10+
first_match_bet_market,
11+
inj_token,
12+
inj_usdt_spot_market,
13+
usdt_perp_token,
14+
usdt_token,
15+
)
1416

1517

1618
class TestComposerDeprecationWarnings:

0 commit comments

Comments
 (0)