Skip to content

Commit

Permalink
Memento, contract deployments etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Sep 3, 2024
1 parent 36b1ae3 commit 2c1957e
Show file tree
Hide file tree
Showing 4 changed files with 335 additions and 92 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,26 @@ python3 -m venv ./venv
source ./venv/bin/activate
pip install -r ./requirements-dev.txt --upgrade
```

### Check:data

Optional: generate sample data (transactions):

```
source .env
PYTHONPATH=. python3 ./systemtests/generate_testdata_on_network.py setup --network testnet
PYTHONPATH=. python3 ./systemtests/generate_testdata_on_network.py run --network testnet --without-spica
```

Run the checks:

```
PYTHONPATH=. python3 ./systemtests/check_with_mesh_cli.py --mode=data --network=testnet
```

### Check:construction

```
PYTHONPATH=. python3 ./systemtests/check_with_mesh_cli.py --mode=construction-native --network=testnet
```
24 changes: 5 additions & 19 deletions systemtests/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
from dataclasses import dataclass
from typing import List


@dataclass
Expand All @@ -19,8 +18,8 @@ class Configuration:
check_construction_custom_configuration_file: str
check_data_configuration_file: str
check_data_directory: str
known_contracts: List[str]
explorer_url: str
memento_file: str = ""
sponsor_secret_key: bytes = bytes.fromhex(os.environ.get("SPONSOR_SECRET_KEY", ""))
users_mnemonic: str = os.environ.get("USERS_MNEMONIC", "")

Expand All @@ -41,8 +40,7 @@ class Configuration:
check_construction_custom_configuration_file="",
check_data_configuration_file="systemtests/mesh_cli_config/check-data.json",
check_data_directory="systemtests/mainnet-data",
known_contracts=[
],
memento_file="systemtests/memento/mainnet.json",
explorer_url="https://explorer.multiversx.com",
),
"devnet": Configuration(
Expand All @@ -60,11 +58,7 @@ class Configuration:
check_construction_custom_configuration_file="systemtests/mesh_cli_config/devnet-construction-custom.json",
check_data_configuration_file="systemtests/mesh_cli_config/check-data.json",
check_data_directory="systemtests/devnet-data",
known_contracts=[
"erd1qqqqqqqqqqqqqpgqagjekf5mxv86hy5c62vvtug5vc6jmgcsq6uq8reras",
"erd1qqqqqqqqqqqqqpgq89t5xm4x04tnt9lv747wdrsaycf3rcwcggzsa7crse",
"erd1qqqqqqqqqqqqqpgqeesfamasje5zru7ku79m8p4xqfqnywvqxj0qhtyzdr"
],
memento_file="systemtests/memento/devnet.json",
explorer_url="https://devnet-explorer.multiversx.com",
),
"testnet": Configuration(
Expand All @@ -82,11 +76,7 @@ class Configuration:
check_construction_custom_configuration_file="systemtests/mesh_cli_config/testnet-construction-custom.json",
check_data_configuration_file="systemtests/mesh_cli_config/check-data.json",
check_data_directory="systemtests/testnet-data",
known_contracts=[
"erd1qqqqqqqqqqqqqpgqagjekf5mxv86hy5c62vvtug5vc6jmgcsq6uq8reras",
"erd1qqqqqqqqqqqqqpgq89t5xm4x04tnt9lv747wdrsaycf3rcwcggzsa7crse",
"erd1qqqqqqqqqqqqqpgqeesfamasje5zru7ku79m8p4xqfqnywvqxj0qhtyzdr"
],
memento_file="systemtests/memento/testnet.json",
explorer_url="https://testnet-explorer.multiversx.com",
),
"localnet": Configuration(
Expand All @@ -104,11 +94,7 @@ class Configuration:
check_construction_custom_configuration_file="systemtests/mesh_cli_config/localnet-construction-custom.json",
check_data_configuration_file="systemtests/mesh_cli_config/check-data.json",
check_data_directory="systemtests/localnet-data",
known_contracts=[
"erd1qqqqqqqqqqqqqpgqagjekf5mxv86hy5c62vvtug5vc6jmgcsq6uq8reras",
"erd1qqqqqqqqqqqqqpgq89t5xm4x04tnt9lv747wdrsaycf3rcwcggzsa7crse",
"erd1qqqqqqqqqqqqqpgqeesfamasje5zru7ku79m8p4xqfqnywvqxj0qhtyzdr"
],
memento_file="systemtests/memento/localnet.json",
explorer_url="",
),
}
Loading

0 comments on commit 2c1957e

Please sign in to comment.