forked from LedgerHQ/app-everscale
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename all instances of 'boilerplate' to 'everscale'
- Loading branch information
Showing
10 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ication_client/boilerplate_transaction.py → ...plication_client/everscale_transaction.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
tests/test_version_cmd.py → tests/test_get_app_config_cmd.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
from ragger.backend.interface import BackendInterface | ||
|
||
from application_client.boilerplate_command_sender import BoilerplateCommandSender | ||
from application_client.boilerplate_response_unpacker import unpack_get_version_response | ||
from application_client.everscale_command_sender import EverscaleCommandSender | ||
from application_client.everscale_response_unpacker import unpack_get_version_response | ||
|
||
from utils import verify_version | ||
|
||
# In this test we check the behavior of the device when asked to provide the app version | ||
def test_version(backend: BackendInterface) -> None: | ||
def test_get_app_config(backend: BackendInterface) -> None: | ||
# Use the app interface instead of raw interface | ||
client = BoilerplateCommandSender(backend) | ||
client = EverscaleCommandSender(backend) | ||
# Send the GET_VERSION instruction | ||
rapdu = client.get_version() | ||
rapdu = client.get_app_config() | ||
# Use an helper to parse the response, assert the values | ||
MAJOR, MINOR, PATCH = unpack_get_version_response(rapdu.data) | ||
verify_version(f"{MAJOR}.{MINOR}.{PATCH}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters