Commit Graph

103 Commits

Author SHA1 Message Date
Charles-Edouard de la Vergne
6dd70e11a8 Fix python lint 2024-05-07 16:23:55 +02:00
Alexandre Paillier
a2107b81c4 Now uses Web3 to check EIP-712 signatures in Ragger tests
Fixed platformFeeRecipient address length in 14-rabby_bug-data.json since Web3 does not handle addresses with a length != 20B
2024-05-02 18:37:35 +02:00
Alexandre Paillier
01f9db42b4 Improve EIP712 empty array test 2024-05-02 18:37:30 +02:00
Alexandre Paillier
46880bda8f Added problematic JSON file
https://github.com/LedgerHQ/ledger-live/issues/6065
2024-05-02 18:37:30 +02:00
Charles-Edouard de la Vergne
b427eb280d Remove useless screenshots for test_legacy_contract, and simplify test 2024-04-15 13:55:45 +02:00
Charles-Edouard de la Vergne
c9436ab668 Improve 'ROOT_SNAPSHOT_PATH' with latest ragger version 2024-04-11 18:08:45 +02:00
Charles-Edouard de la Vergne
8fcaf9f103 Remove useless 'test_legacy_etc' ragger snapshots 2024-04-11 18:07:55 +02:00
Charles-Edouard de la Vergne
152a332b34 Rename 'test_get_pk2' to 'test_get_eth2_pk' and use rather ETH2 public address 2024-04-11 18:07:55 +02:00
Charles-Edouard de la Vergne
962c9f3cc1 Update amounts to smaller values to ease screen reading 2024-04-11 18:07:55 +02:00
Charles-Edouard de la Vergne
f549117508 Use settings_toggle function to simplify the code 2024-04-11 18:07:54 +02:00
Charles-Edouard de la Vergne
c75c687b6c Move test eip2930 to test_sign 2024-04-11 18:07:54 +02:00
Charles-Edouard de la Vergne
bce536c128 remove redundant test_get_public_key 2024-04-11 18:07:54 +02:00
Charles-Edouard de la Vergne
473c252207 Remove redundant tests from test_sign 2024-04-11 18:07:53 +02:00
Charles-Edouard de la Vergne
ae6c7bfff5 Remove redundant test_eip1559 2024-04-11 18:07:53 +02:00
Charles-Edouard de la Vergne
29630f9cf3 Remove client installation, and use local module with symlink 2024-04-11 18:07:52 +02:00
Charles-Edouard de la Vergne
da284a120a Update documentation 2024-04-11 18:07:52 +02:00
Charles-Edouard de la Vergne
d4b6e5ca35 Port 'send_etc.test' from 'zemu' to 'ragger'
- Port test config from 'zemu'
- Copy snapshots from 'zemu'
- Adapt conftest.py to support library mode
- Add a new test step in the workflow
2024-04-11 18:07:51 +02:00
Charles-Edouard de la Vergne
e6b2cf30c5 Port 'contract_data_warning.test' from 'zemu' to 'ragger' 2024-04-11 16:45:00 +02:00
Charles-Edouard de la Vergne
fe1b3874ff Port 'chainid.test' from 'zemu' to 'ragger' 2024-04-11 16:45:00 +02:00
Charles-Edouard de la Vergne
d1cdc6b1f2 Port 'send_bsc.test' from 'zemu' to 'ragger' 2024-04-11 16:45:00 +02:00
Charles-Edouard de la Vergne
4fce1d4afd Port 'send.test' from 'zemu' to 'ragger' 2024-04-11 16:44:59 +02:00
Charles-Edouard de la Vergne
5d5b68f56b Refactor of 'ragger' test 'eip712' 2024-04-11 16:44:57 +02:00
Charles-Edouard de la Vergne
1ed560f1f5 Port 'test_erc20information' from 'speculos' to 'ragger' 2024-04-11 16:44:56 +02:00
Charles-Edouard de la Vergne
5c3504a143 Port 'old_test_eip191' from 'speculos' to 'ragger' 2024-04-11 16:44:56 +02:00
Charles-Edouard de la Vergne
0a42f62816 Port 'test_eip1559' from 'speculos' to 'ragger' 2024-04-10 19:03:45 +02:00
Charles-Edouard de la Vergne
7a608c49df Port 'test_eip2930' from 'speculos' to 'ragger' 2024-04-10 19:03:45 +02:00
Charles-Edouard de la Vergne
8d0f798ec0 Port 'test_sign_cmd' from 'speculos' to 'ragger' 2024-04-10 19:03:44 +02:00
Charles-Edouard de la Vergne
91d73f9110 Port 'test_pubkey_cmd' from 'speculos' to 'ragger' 2024-04-10 19:03:44 +02:00
Charles-Edouard de la Vergne
6e477717de Port 'test_configuration_cmd' from 'speculos' to 'ragger' 2024-04-10 19:03:43 +02:00
Charles-Edouard de la Vergne
fa3e87a06c Fix pylint issues 2024-04-10 19:02:00 +02:00
Charles-Edouard de la Vergne
565c6fab66 Update ragger test configuration and setup 2024-04-10 19:01:57 +02:00
Francois Beutin
8d9e79ba0a Use sync or async exchange calls in ethereum client 2024-03-28 16:54:57 +01:00
Alexandre Paillier
c193362d56 New blind-sign ragger test 2024-03-08 18:06:56 +01:00
Alexandre Paillier
6414890b2f Added ERC-20 ABI & fixed indentation on other ABIs 2024-03-08 18:00:36 +01:00
Alexandre Paillier
5715827add New basic signature (+ verification) ragger tests 2024-03-08 17:49:17 +01:00
Ledger App Tester Bot
50ba42d535 [auto] Update screenshot 2024-02-21 14:14:32 +00:00
Alexandre Paillier
faa2d3aabf Ragger tests 2024-02-14 12:10:16 +01:00
Alexandre Paillier
c8c6b9a2d1 EIP-712 Ragger tests snapshots handling
Also moved snapshots root path to a centralized/common file
2024-02-14 12:10:16 +01:00
Alexandre Paillier
9ea5d42895 Update tests 2024-02-13 14:41:37 +01:00
Ledger App Tester Bot
089b24817f [auto] Update screenshot 2024-01-10 15:17:01 +00:00
Sarah GLINER
eb00fca1f4 client: add symlink to install dependencies from ragger folder 2023-12-07 15:11:13 +01:00
Alexandre Paillier
c65db6f307 Removed old type hinting 2023-11-30 10:55:45 +01:00
Alexandre Paillier
620167633b Modified EIP712 function to take dictionaries directly instead of filenames 2023-11-30 10:55:34 +01:00
Alexandre Paillier
711b083f69 flake8 fixes 2023-11-29 18:25:42 +01:00
Alexandre Paillier
f30546f8f5 Updated ENS tests to use the new sign function 2023-11-29 18:25:42 +01:00
Alexandre Paillier
b90d660a69 Improved NFT tests
Now uses the ERC 721/1155 ABIs, gets selector automatically, and actually verifies the signature
2023-11-29 18:25:42 +01:00
Alexandre Paillier
62215e3e5f Now uses Web3.py to get function selectors 2023-11-27 11:17:03 +01:00
Alexandre Paillier
de82990e14 Added the Web3.py library as a dependency to the python client 2023-11-27 11:16:54 +01:00
Alexandre Paillier
4bcd61edc9 Ragger Stax snapshot update 2023-10-18 16:46:00 +02:00
Alexandre Paillier
31f0d7f034 App now has all the network icons and can use them when needed 2023-10-18 16:45:58 +02:00