Skip to content

Commit 1965f6c

Browse files
Copilot0xrinegade
andcommitted
Update Copilot instructions with accurate module information and detailed known issues
Co-authored-by: 0xrinegade <[email protected]>
1 parent 586f3b5 commit 1965f6c

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/copilot-instructions.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ src/
2424
├── key_validator.rs # Solana private key validation
2525
├── secure_storage.rs # Keychain integration and encryption
2626
├── wallet_manager.rs # Wallet CRUD operations
27-
├── transaction_handler.rs # Batch send and token mixing logic
2827
├── vanity_wallet.rs # Vanity address generation
29-
├── config.rs # Configuration management
30-
└── logging.rs # Logging utilities
28+
├── config.rs # Configuration management (not currently integrated)
29+
├── logging.rs # Logging utilities (not currently integrated)
30+
└── transaction_handler.rs # Batch send and token mixing logic (not currently integrated)
3131
```
3232

33+
Note: Some modules (`config.rs`, `logging.rs`, `transaction_handler.rs`) exist as files but are not yet imported in `main.rs`, indicating they may be planned features or incomplete integrations.
34+
3335
## Build Process
3436

3537
### Prerequisites
@@ -230,8 +232,14 @@ When modifying the TUI:
230232

231233
## Known Issues
232234

233-
- The project currently has a compilation error in `wallet_manager.rs` related to `Keypair::from_bytes` which has been deprecated in solana-sdk 3.0.0
234-
- The TUI uses a deprecated `frame.size()` method that should be replaced with `frame.area()`
235+
- **Compilation Error**: The project currently has a compilation error in `wallet_manager.rs` at line 162. The code uses `Keypair::from_bytes(&key_bytes)` which does not exist in solana-sdk 3.0.0. The available methods are:
236+
- `Keypair::new()` - Creates a new random keypair
237+
- `Keypair::new_from_array([u8; 32])` - Creates from a 32-byte seed (not 64-byte keypair)
238+
- `Keypair::from_base58_string(&str)` - Creates from base58 string
239+
240+
The keypair bytes need to be split: first 32 bytes are the secret key seed, which should be used with `new_from_array()`.
241+
242+
- **Deprecation Warning**: The TUI uses `frame.size()` at line 539 in `src/tui.rs`. While this currently works, ratatui has marked it as deprecated in favor of `frame.area()`. This is a minor issue that only generates a warning.
235243

236244
When addressing issues:
237245
- Check if they're already known and documented

0 commit comments

Comments
 (0)