Skip to content

Commit ab92a2b

Browse files
author
abel
committed
Merge branch 'master' of https://github.com/InjectiveLabs/sdk-python into feat/synchro_dev_with_master_0630
2 parents bd9752d + 5dce67a commit ab92a2b

17 files changed

+61
-48
lines changed

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ pytest = "*"
2626
pytest-asyncio = "*"
2727

2828
[requires]
29-
python_version = "3.9"
29+
python_version = "3.8"

Pipfile.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ make tests
9292
* Solved issue preventing requesting spot and derivative historical orders for more than one market_id
9393
* Add `pytest` as a development dependency to implement and run unit tests
9494

95+
**0.6.3.1**
96+
* Update the code to the new structure of transaction simulation responses
97+
9598
**0.6.2.7**
9699
* Fix margin calculation in utils
97100

examples/chain_client/17_MsgBatchUpdateOrders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async def main() -> None:
132132
print(sim_res)
133133
return
134134

135-
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
135+
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
136136
print("---Simulation Response---")
137137
print(sim_res_msg)
138138

examples/chain_client/20_MsgExec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ async def main() -> None:
6363
print(sim_res)
6464
return
6565

66-
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
67-
data=(str(sim_res_msg[0]).replace("results:", ''))
66+
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
67+
data=sim_res_msg[0]
6868
unpacked_msg_res = ProtoMsgComposer.UnpackMsgExecResponse(
6969
msg_type=msg0.__class__.__name__,
7070
data=data

examples/chain_client/31_MsgCreateBinaryOptionsLimitOrder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def main() -> None:
6262
print(sim_res)
6363
return
6464

65-
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
65+
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
6666
print("---Simulation Response---")
6767
print(sim_res_msg)
6868

examples/chain_client/32_MsgCreateBinaryOptionsMarketOrder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def main() -> None:
5757
print(sim_res)
5858
return
5959

60-
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
60+
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
6161
print("---Simulation Response---")
6262
print(sim_res_msg)
6363

examples/chain_client/33_MsgCancelBinaryOptionsOrder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async def main() -> None:
5353
print(sim_res)
5454
return
5555

56-
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
56+
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
5757
print("---Simulation Response---")
5858
print(sim_res_msg)
5959

examples/chain_client/34_MsgAdminUpdateBinaryOptionsMarket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def main() -> None:
5858
print(sim_res)
5959
return
6060

61-
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
61+
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
6262
print("---Simulation Response---")
6363
print(sim_res_msg)
6464

examples/chain_client/35_MsgInstantBinaryOptionsMarketLaunch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def main() -> None:
6060
print(sim_res)
6161
return
6262

63-
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res.result.data, simulation=True)
63+
sim_res_msg = ProtoMsgComposer.MsgResponses(sim_res, simulation=True)
6464
print("---Simulation Response---")
6565
print(sim_res_msg)
6666

0 commit comments

Comments
 (0)