Commit 524c1bb
committed
feat: add 7.14.0 proto bindings, client methods, and integration tests
Proto bindings (compiled with protoc 3.5.1 in Docker for CI compat):
- messages_pb2.py: regenerated with BIP-85 (120-121), Solana (750-755),
Tron (1400-1403), TON (1500-1503) wire IDs
- messages_solana_pb2.py: SolanaGetAddress/Address/SignTx/SignedTx/SignMessage
- messages_tron_pb2.py: TronGetAddress/Address/SignTx/SignedTx
- messages_ton_pb2.py: TonGetAddress/Address/SignTx/SignedTx
Client methods (client.py):
- solana_get_address, solana_sign_tx, solana_sign_message
- tron_get_address, tron_sign_tx
- ton_get_address, ton_sign_tx
Mapping (mapping.py):
- Route Solana/Tron/TON message types to chain-specific proto modules
- Gracefully skip unknown types (e.g. Zcash not in 7.14.0)
Integration tests (14 new tests):
- test_msg_bip85.py: 12/24-word derivation, determinism, index isolation
- test_msg_solana_getaddress.py: address format, determinism, account isolation
- test_msg_tron_getaddress.py: T-prefix Base58, determinism, account isolation
- test_msg_ton_getaddress.py: address format, determinism, account isolation1 parent d1c9e01 commit 524c1bb
9 files changed
Lines changed: 1450 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
1556 | 1559 | | |
1557 | 1560 | | |
1558 | 1561 | | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
1559 | 1607 | | |
1560 | 1608 | | |
1561 | 1609 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 | | |
40 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
41 | 52 | | |
42 | 53 | | |
43 | 54 | | |
| |||
0 commit comments