https://github.com/drmick/rust-solana-simple-app
This program stored five BTC prices
https://github.com/drmick/rust-solana-simple-app
blockchain rust solana solana-client solana-program
Last synced: about 2 months ago
JSON representation
This program stored five BTC prices
- Host: GitHub
- URL: https://github.com/drmick/rust-solana-simple-app
- Owner: drmick
- Created: 2022-01-12T11:12:20.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-18T06:31:39.000Z (over 4 years ago)
- Last Synced: 2025-04-04T17:21:59.958Z (over 1 year ago)
- Topics: blockchain, rust, solana, solana-client, solana-program
- Language: Rust
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solana program: Index
This program stored last five BTC prices
The project consists of three modules
1. [solana-program](program) (Smart Contract)
2. [price-sender](client/src/price_sender) - module that adds the BTC price to solana-program
2. [client](client/src/client) - solana-program client module (here we can see the average bitcoin price)
## Startup steps
#### 1. Configure solana to work on the local network or in devnet and add some SOL
```
solana config set --url https://api.devnet.solana.com
solana airdrop 2
solana airdrop 2
```
#### 2. Build solana-program and generate keypair of program:
```
./run.sh build-bpf
```
#### 3. Deploy solana-program:
```
./run.sh deploy
```
#### 4. Run bitcoin price sender to solana-program:
```
./run.sh price_sender
```
#### 5 Run client:
```
./run.sh client
```
[Here](https://explorer.solana.com/address/5hWnTmjBFCsTwxJTztNNGXHznBze42N8XReshWnWxubQ?cluster=devnet) is example of program (with running price-sender)