https://github.com/solana-developers/axum-solana-transfer
https://github.com/solana-developers/axum-solana-transfer
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/solana-developers/axum-solana-transfer
- Owner: solana-developers
- Created: 2024-07-18T21:23:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-22T16:15:49.000Z (almost 2 years ago)
- Last Synced: 2025-02-24T13:55:09.829Z (over 1 year ago)
- Language: Rust
- Size: 206 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
- clone repo, `cd` to this project and run:
```
solana-test-validator --clone-upgradeable-program 3C3pUh5XxUd9Nz1P85mDYfUu4PXAFRg1aHCos66epHQK --url https://api.devnet.solana.com --bpf-program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb spl_token_2022.so --reset
```
- the `spl_token_2022.so` file which includes confidential transfers is included
- the `solana-test-validator` command above also clones a transfer hook program from devnet for testing
- open a new terminal
- `cd server`, then run:
```
cargo test -- --nocapture
```
- this runs the tests in `test.rs` and prints the transaction signatures to inspect on solana explorer (localnet)