Skip to content

Commit df9bafe

Browse files
authored
Merge pull request #213 from InjectiveLabs/release/staging_v064
Release/staging v064
2 parents 7b85dbb + 39b618a commit df9bafe

File tree

126 files changed

+428
-174
lines changed

Some content is hidden

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

126 files changed

+428
-174
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gen: gen-client
77
gen-client: copy-proto
88
@for dir in $(PROTO_DIRS); do \
99
mkdir -p ./pyinjective/$${dir}; \
10-
python3.10 -m grpc_tools.protoc \
10+
python3 -m grpc_tools.protoc \
1111
-I proto \
1212
--python_out=./pyinjective/proto \
1313
--grpc_python_out=./pyinjective/proto \
@@ -34,4 +34,7 @@ copy-proto:
3434
cp "$${file}" proto/exchange/; \
3535
done
3636

37-
.PHONY: all gen gen-client copy-proto
37+
tests:
38+
pytest -v tests/**
39+
40+
.PHONY: all gen gen-client copy-proto tests

Pipfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ websockets = "*"
2222
urllib3 = "<2"
2323

2424
[dev-packages]
25+
pytest = "*"
26+
pytest-asyncio = "*"
2527

2628
[requires]
2729
python_version = "3.9"

Pipfile.lock

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

README.md

Lines changed: 14 additions & 0 deletions

compatibility-tests/tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,5 +204,4 @@ async def post_tx(tx_json: str):
204204
return resp['txhash']
205205

206206
if __name__ == "__main__":
207-
logging.basicConfig(level=logging.INFO)
208207
asyncio.get_event_loop().run_until_complete(main())

examples/SendToInjective.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ async def main() -> None:
3434
receiver=receiver, amount=amount, maxFeePerGas=maxFeePerGas_Gwei, maxPriorityFeePerGas=maxPriorityFeePerGas_Gwei, data=data, peggo_abi=peggo_abi)
3535

3636
if __name__ == "__main__":
37-
logging.basicConfig(level=logging.INFO)
3837
asyncio.get_event_loop().run_until_complete(main())

examples/chain_client/0_LocalOrderHash.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,5 +247,4 @@ async def main() -> None:
247247
print("gas fee: {} INJ".format(gas_fee))
248248

249249
if __name__ == "__main__":
250-
logging.basicConfig(level=logging.INFO)
251250
asyncio.get_event_loop().run_until_complete(main())

examples/chain_client/13_MsgIncreasePositionMargin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,4 @@ async def main() -> None:
7474
print("gas fee: {} INJ".format(gas_fee))
7575

7676
if __name__ == "__main__":
77-
logging.basicConfig(level=logging.INFO)
7877
asyncio.get_event_loop().run_until_complete(main())

examples/chain_client/15_MsgWithdraw.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,4 @@ async def main() -> None:
8484
print("gas fee: {} INJ".format(gas_fee))
8585

8686
if __name__ == "__main__":
87-
logging.basicConfig(level=logging.INFO)
8887
asyncio.get_event_loop().run_until_complete(main())

examples/chain_client/16_MsgSubaccountTransfer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,4 @@ async def main() -> None:
7272
print("gas fee: {} INJ".format(gas_fee))
7373

7474
if __name__ == "__main__":
75-
logging.basicConfig(level=logging.INFO)
7675
asyncio.get_event_loop().run_until_complete(main())

0 commit comments

Comments
 (0)