Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
547f08b
feat: adapt Makefile to buf export
achilleas-kal May 12, 2023
d6b27e4
chore: re-gen proto
achilleas-kal May 12, 2023
230b914
chore: release sdk47 version
achilleas-kal May 14, 2023
6dea34d
chore: sdk47 version pkg
achilleas-kal May 14, 2023
6335a98
chore: release v0.6.2.3
achilleas-kal May 14, 2023
b4d2c7e
chore: swap USDC and USDCfr
achilleas-kal May 18, 2023
a97f8d8
feat: add 1MPEPE
achilleas-kal May 29, 2023
1fc36c7
chore: release 0.6.2.9
achilleas-kal May 29, 2023
25db8e1
chore: re-gen
achilleas-kal May 31, 2023
eb9ff82
chore: release v0.6.3.0
achilleas-kal May 31, 2023
231f8cc
Merge branch 'master' into f/sdk47
achilleas-kal May 31, 2023
8c8b042
Merge pull request #200 from InjectiveLabs/f/sdk47
achilleas-kal May 31, 2023
6684080
Merge branch 'master' of https://github.com/InjectiveLabs/sdk-python …
Jun 1, 2023
2ca1c86
(fix) Quick patch to solve pipenv issue with pysha3 library with Pyth…
Jun 1, 2023
bd9752d
(fix) Solved issue with urllib3 version 2.0
Jun 1, 2023
79ffebb
(fix) Simulation responses processing addapted to new simulation resp…
Jun 1, 2023
fc8b247
(fix) Update version number and README file
Jun 1, 2023
5d2e626
Merge pull request #209 from InjectiveLabs/fix/addapt_code_to_simulat…
achilleas-kal Jun 1, 2023
b1f2279
chore: add WMATIC/USDT
achilleas-kal Jun 3, 2023
5dce67a
chore: release v0.6.3.2
achilleas-kal Jun 3, 2023
ab92a2b
Merge branch 'master' of https://github.com/InjectiveLabs/sdk-python …
Jun 5, 2023
a0aee50
(fix) Change proto generation logic in Makefile to use the generic py…
Jun 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ gen-client: copy-proto
copy-proto:
rm -rf pyinjective/proto
mkdir -p proto/exchange
buf export buf.build/cosmos/cosmos-sdk:v0.47.0 --output=third_party
buf export https://github.com/cosmos/ibc-go.git --exclude-imports --output=third_party
buf export https://github.com/tendermint/tendermint.git --exclude-imports --output=third_party
buf export https://github.com/CosmWasm/wasmd.git --exclude-imports --output=./third_party
buf export https://github.com/cosmos/ics23.git --exclude-imports --output=./third_party

cp -r ../injective-core/proto/injective proto/
cp -r ../injective-core/third_party/proto/* proto/
cp -r ./third_party/* proto/

rm -rf ./third_party

@for file in $(EXCHANGE_PROTO_FILES); do \
cp "$${file}" proto/exchange/; \
done
Expand Down
3 changes: 2 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ eip712_structs = "*"
coincurve = "*"
aiocron = "*"
websockets = "*"
urllib3 = "<2"

[dev-packages]
pytest = "*"
pytest-asyncio = "*"

[requires]
python_version = "3"
python_version = "3.9"
82 changes: 30 additions & 52 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,14 @@ make tests
```

### Changelogs
**0.6.3**(change before release)
**0.6.4**(change before release)
* 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.1**
* Update the code to the new structure of transaction simulation responses

**0.6.2.7**
* Fix margin calculation in utils

Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/17_MsgBatchUpdateOrders.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def main() -> None:
print(sim_res)
return

sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
print("---Simulation Response---")
print(sim_res_msg)

Expand Down
4 changes: 2 additions & 2 deletions examples/chain_client/20_MsgExec.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ async def main() -> None:
print(sim_res)
return

sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
data=(str(sim_res_msg[0]).replace("results:", ''))
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
data=sim_res_msg[0]
unpacked_msg_res = ProtoMsgComposer.UnpackMsgExecResponse(
msg_type=msg0.__class__.__name__,
data=data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def main() -> None:
print(sim_res)
return

sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
print("---Simulation Response---")
print(sim_res_msg)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def main() -> None:
print(sim_res)
return

sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
print("---Simulation Response---")
print(sim_res_msg)

Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/33_MsgCancelBinaryOptionsOrder.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def main() -> None:
print(sim_res)
return

sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
print("---Simulation Response---")
print(sim_res_msg)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def main() -> None:
print(sim_res)
return

sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
print("---Simulation Response---")
print(sim_res_msg)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def main() -> None:
print(sim_res)
return

sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
print("---Simulation Response---")
print(sim_res_msg)

Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/36_MsgRelayProviderPrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def main() -> None:
print(sim_res)
return

sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
print("---Simulation Response---")
print(sim_res_msg)

Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/3_MsgCreateSpotLimitOrder.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def main() -> None:
print(sim_res)
return

sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
print("---Simulation Response---")
print(sim_res_msg)

Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/4_MsgCreateSpotMarketOrder.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def main() -> None:
print(sim_res)
return

sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
print("---Simulation Response---")
print(sim_res_msg)

Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/6_MsgCreateDerivativeLimitOrder.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def main() -> None:
print(sim_res)
return

sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
print("---Simulation Response---")
print(sim_res_msg)

Expand Down
2 changes: 1 addition & 1 deletion examples/chain_client/7_MsgCreateDerivativeMarketOrder.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def main() -> None:
print(sim_res)
return

sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
print("---Simulation Response---")
print(sim_res_msg)

Expand Down
Loading