Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fixes and LCDClient tests #75

Merged
merged 20 commits into from
Feb 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ clean-test: ## remove test and coverage artifacts
rm -fr .pytest_cache

test: ## runs tests
poetry run pytest
poetry run pytest --cov=terra_sdk

qa: ## runs static analysis with mypy and flake8
poetry run flake8 terra_sdk
Expand Down
21 changes: 9 additions & 12 deletions integration_tests/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def main():
terra = LocalTerra()
terra.gas_prices = '1uluna'
terra.gas_prices = "1uluna"
test1 = terra.wallets["test1"]

store_code_tx = test1.create_and_sign_tx(
Expand All @@ -21,7 +21,7 @@ def main():
read_file_as_b64(Path(__file__).parent / "./contract.wasm"),
)
],
gas_adjustment=1.75
gas_adjustment=1.75,
)
)
store_code_tx_result = terra.tx.broadcast(store_code_tx)
Expand All @@ -34,22 +34,19 @@ def main():
CreateTxOptions(
msgs=[
MsgInstantiateContract(
test1.key.acc_address,
test1.key.acc_address,
code_id,
{"count": 10}
test1.key.acc_address, test1.key.acc_address, code_id, {"count": 10}
)
],
gas_prices="10uluna",
gas_adjustment=2
gas_adjustment=2,
)
)
print(instantiate_tx)
instantiate_tx_result = terra.tx.broadcast(instantiate_tx)
print(instantiate_tx_result)
contract_address = get_contract_address(instantiate_tx_result)
#"""
#contract_address = "terra1e8d3cw4j0k5fm9gw03jzh9xzhzyz99pa8tphd8"
# """
# contract_address = "terra1e8d3cw4j0k5fm9gw03jzh9xzhzyz99pa8tphd8"
result = terra.wasm.contract_query(contract_address, {"get_count": {}})
print("get_count1: ", result)
execute_tx = test1.create_and_sign_tx(
Expand All @@ -61,7 +58,7 @@ def main():
{"increment": {}},
)
],
gas_adjustment=1.75
gas_adjustment=1.75,
)
)
# {"uluna": 1000},
Expand All @@ -73,8 +70,8 @@ def main():
print("get_count2: ", result)


#try:
# try:
main()
#except Exception as e:
# except Exception as e:
# print("exception occured")
# print(e)
14 changes: 0 additions & 14 deletions integration_tests/lcd_auth.py

This file was deleted.

27 changes: 0 additions & 27 deletions integration_tests/lcd_bank.py

This file was deleted.

32 changes: 0 additions & 32 deletions integration_tests/lcd_distribution.py

This file was deleted.

18 changes: 0 additions & 18 deletions integration_tests/lcd_feegrant.py

This file was deleted.

48 changes: 0 additions & 48 deletions integration_tests/lcd_gov.py

This file was deleted.

18 changes: 0 additions & 18 deletions integration_tests/lcd_ibc.py

This file was deleted.

17 changes: 0 additions & 17 deletions integration_tests/lcd_ibc_transfer.py

This file was deleted.

19 changes: 0 additions & 19 deletions integration_tests/lcd_market.py

This file was deleted.

18 changes: 0 additions & 18 deletions integration_tests/lcd_mint.py

This file was deleted.

37 changes: 0 additions & 37 deletions integration_tests/lcd_oracle.py

This file was deleted.

25 changes: 0 additions & 25 deletions integration_tests/lcd_slashing.py

This file was deleted.

Loading