Skip to content

Commit 241f1e9

Browse files
authored
Merge pull request #207 from InjectiveLabs/feat/synchro_dev_with_master_0630
Feat/synchro dev with master 0.6.3.0
2 parents a991f44 + a0aee50 commit 241f1e9

File tree

350 files changed

+13572
-5972
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

350 files changed

+13572
-5972
lines changed

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,17 @@ gen-client: copy-proto
1919
copy-proto:
2020
rm -rf pyinjective/proto
2121
mkdir -p proto/exchange
22+
buf export buf.build/cosmos/cosmos-sdk:v0.47.0 --output=third_party
23+
buf export https://github.com/cosmos/ibc-go.git --exclude-imports --output=third_party
24+
buf export https://github.com/tendermint/tendermint.git --exclude-imports --output=third_party
25+
buf export https://github.com/CosmWasm/wasmd.git --exclude-imports --output=./third_party
26+
buf export https://github.com/cosmos/ics23.git --exclude-imports --output=./third_party
27+
2228
cp -r ../injective-core/proto/injective proto/
23-
cp -r ../injective-core/third_party/proto/* proto/
29+
cp -r ./third_party/* proto/
30+
31+
rm -rf ./third_party
32+
2433
@for file in $(EXCHANGE_PROTO_FILES); do \
2534
cp "$${file}" proto/exchange/; \
2635
done

Pipfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ eip712_structs = "*"
1919
coincurve = "*"
2020
aiocron = "*"
2121
websockets = "*"
22+
urllib3 = "<2"
2223

2324
[dev-packages]
2425
pytest = "*"
2526
pytest-asyncio = "*"
2627

2728
[requires]
28-
python_version = "3"
29+
python_version = "3.9"

Pipfile.lock

Lines changed: 30 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,14 @@ make tests
8787
```
8888

8989
### Changelogs
90-
**0.6.3**(change before release)
90+
**0.6.4**(change before release)
9191
* Change logging logic to use different loggers for each module and class
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

0 commit comments

Comments
 (0)