Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added --solana-key flag to derive destination address #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0xObsidian
Copy link

Description

  • introduced --solana-key flag
  • added support for reading Solana keypair files and deriving public keys
  • implemented validation to prevent using both --solana-key and --destination
  • added test suite for the introduced feat
  • improved error handling for invalid key files

Usage

Clone this PR branch and install dependencies and make sure you followed the readme to derive eth key private-key.txt and solana key key.json and then run

node bin/cli.js -k private-key.txt --solana-key key.json -a 0.002 --sepolia

Testing the introduced feat

From the root direcoty, run:

yarn test

This PR addresses ticket #36

@0xObsidian
Copy link
Author

Hi @tavakyan and @dlin128
This PR addresses ticket #36, feel free to let me know if you have any questions.

Description
-----------
- introduced --solana-key flag
- added support for reading Solana keypair files
  and deriving public keys
- implemented validation to prevent using both
  --solana-key and --destination
- added test suite for the introduced feat
- improved error handling for invalid key files

Usage
-----
Clone this PR branch and install dependencies and make sure you
followed the readme to derive eth key `private-key.txt`
and solana key `key.json` and then run
```
node bin/cli.js -k private-key.txt --solana-key key.json -a 0.002 --sepolia
```

Testing the introduced feat
---------------------------
From the root direcoty, run:
```
yarn test
```

chore: format
@0xObsidian 0xObsidian force-pushed the 0xObsidian/solana-key-flag-to-derive-destination-addr branch from dd6f591 to ecaf738 Compare December 17, 2024 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant