forked from cerc-io/laconicd-deprecated
fix: build test on mac by updating to python3.10 (#1437)
This commit is contained in:
Generated
+878
-629
File diff suppressed because it is too large
Load Diff
@@ -6,22 +6,22 @@ authors = ["chain-dev <chain@crypto.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.8"
|
||||
pytest = "^7.0.1"
|
||||
pytest = "7.1.1"
|
||||
pytest-github-actions-annotate-failures = "^0.1.1"
|
||||
flake8 = "^4.0.1"
|
||||
black = "^22.3.0"
|
||||
flake8-black = "^0.3.2"
|
||||
flake8-isort = "^4.1.1"
|
||||
pep8-naming = "^0.11.1"
|
||||
protobuf = "^3.20.2"
|
||||
protobuf = "^3.13.0"
|
||||
grpcio = "^1.33.2"
|
||||
PyYAML = "^5.3.1"
|
||||
python-dateutil = "^2.8.1"
|
||||
web3 = "^5.20.1"
|
||||
web3 = "^6.0.0b6"
|
||||
eth-bloom = "^1.0.4"
|
||||
python-dotenv = "^0.19.2"
|
||||
pystarport = { git = "https://github.com/crypto-com/pystarport.git", branch = "main" }
|
||||
websockets = "^9.1"
|
||||
websockets = "^10.3"
|
||||
toml = "^0.10.2"
|
||||
pysha3 = "^1.0.2"
|
||||
jsonnet = "^0.18.0"
|
||||
|
||||
@@ -55,7 +55,7 @@ def test_event_log_filter_by_contract(cluster):
|
||||
assert flt.get_all_entries() == [] # GetFilterLogs
|
||||
|
||||
# with tx
|
||||
tx = contract.functions.setGreeting("world").buildTransaction()
|
||||
tx = contract.functions.setGreeting("world").build_transaction()
|
||||
tx_receipt = send_transaction(w3, tx)
|
||||
assert tx_receipt.status == 1
|
||||
|
||||
@@ -92,7 +92,7 @@ def test_event_log_filter_by_address(cluster):
|
||||
assert flt.get_all_entries() == [] # GetFilterLogs
|
||||
|
||||
# with tx
|
||||
tx = contract.functions.setGreeting("world").buildTransaction()
|
||||
tx = contract.functions.setGreeting("world").build_transaction()
|
||||
receipt = send_transaction(w3, tx)
|
||||
assert receipt.status == 1
|
||||
|
||||
@@ -110,7 +110,7 @@ def test_get_logs(cluster):
|
||||
assert w3.eth.get_logs({"address": ADDRS["validator"]}) == []
|
||||
|
||||
# with tx
|
||||
tx = contract.functions.setGreeting("world").buildTransaction()
|
||||
tx = contract.functions.setGreeting("world").build_transaction()
|
||||
receipt = send_transaction(w3, tx)
|
||||
assert receipt.status == 1
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ def test_pruned_node(pruned):
|
||||
CONTRACTS["TestERC20A"],
|
||||
key=KEYS["validator"],
|
||||
)
|
||||
tx = erc20.functions.transfer(ADDRS["community"], 10).buildTransaction(
|
||||
tx = erc20.functions.transfer(ADDRS["community"], 10).build_transaction(
|
||||
{"from": ADDRS["validator"]}
|
||||
)
|
||||
signed = sign_transaction(w3, tx, KEYS["validator"])
|
||||
@@ -49,6 +49,8 @@ def test_pruned_node(pruned):
|
||||
|
||||
tx_receipt = w3.eth.get_transaction_receipt(txhash.hex())
|
||||
assert len(tx_receipt.logs) == 1
|
||||
data = "0x000000000000000000000000000000000000000000000000000000000000000a"
|
||||
data = HexBytes(data)
|
||||
expect_log = {
|
||||
"address": erc20.address,
|
||||
"topics": [
|
||||
@@ -58,7 +60,7 @@ def test_pruned_node(pruned):
|
||||
HexBytes(b"\x00" * 12 + HexBytes(ADDRS["validator"])),
|
||||
HexBytes(b"\x00" * 12 + HexBytes(ADDRS["community"])),
|
||||
],
|
||||
"data": "0x000000000000000000000000000000000000000000000000000000000000000a",
|
||||
"data": data,
|
||||
"transactionIndex": 0,
|
||||
"logIndex": 0,
|
||||
"removed": False,
|
||||
@@ -111,9 +113,9 @@ def test_pruned_node(pruned):
|
||||
"to": erc20.address,
|
||||
"transactionIndex": 0,
|
||||
"value": 0,
|
||||
"type": "0x2",
|
||||
"type": 2,
|
||||
"accessList": [],
|
||||
"chainId": "0x2328",
|
||||
"chainId": 9000,
|
||||
}
|
||||
)
|
||||
assert tx1 == tx2
|
||||
|
||||
@@ -127,7 +127,7 @@ def deploy_contract(w3, jsonfile, args=(), key=KEYS["validator"]):
|
||||
acct = Account.from_key(key)
|
||||
info = json.loads(jsonfile.read_text())
|
||||
contract = w3.eth.contract(abi=info["abi"], bytecode=info["bytecode"])
|
||||
tx = contract.constructor(*args).buildTransaction({"from": acct.address})
|
||||
tx = contract.constructor(*args).build_transaction({"from": acct.address})
|
||||
txreceipt = send_transaction(w3, tx, key)
|
||||
assert txreceipt.status == 1
|
||||
address = txreceipt.contractAddress
|
||||
|
||||
Reference in New Issue
Block a user