Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 899d1fc

Browse files
tjkynert-nelson
authored andcommitted
providing link to docs regarding airdrop command
1 parent dde9daa commit 899d1fc

File tree

1 file changed

+40
-42
lines changed

1 file changed

+40
-42
lines changed

token-lending/README.md

Lines changed: 40 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@ This is optional! You can skip these steps and use the [Token Lending CLI](./cli
2727

2828
1. [Install the Solana CLI](https://docs.solana.com/cli/install-solana-cli-tools)
2929

30-
1. Install the Token and Token Lending CLIs:
30+
2. Install the Token and Token Lending CLIs:
3131
```shell
3232
cargo install spl-token-cli
3333
cargo install spl-token-lending-cli
3434
```
3535

36-
1. Clone the SPL repo:
36+
3. Clone the SPL repo:
3737
```shell
3838
git clone https://github.com/solana-labs/solana-program-library.git
3939
```
4040

41-
1. Go to the new directory:
41+
4. Go to the new directory:
4242
```shell
4343
cd solana-program-library
4444
```
4545

46-
1. Generate a keypair for yourself:
46+
5. Generate a keypair for yourself:
4747
```shell
4848
solana-keygen new -o owner.json
4949

@@ -57,7 +57,7 @@ This is optional! You can skip these steps and use the [Token Lending CLI](./cli
5757
```
5858
This pubkey will be the owner of the lending market that can add reserves to it.
5959

60-
1. Generate a keypair for the program:
60+
6. Generate a keypair for the program:
6161
```shell
6262
solana-keygen new -o lending.json
6363

@@ -71,54 +71,52 @@ This is optional! You can skip these steps and use the [Token Lending CLI](./cli
7171
```
7272
This pubkey will be your Program ID.
7373

74-
1. Open `./token-lending/program/src/lib.rs` in your editor. In the line
74+
7. Open `./token-lending/program/src/lib.rs` in your editor. In the line
7575
```rust
7676
solana_program::declare_id!("6TvznH3B2e3p2mbhufNBpgSrLx6UkgvxtVQvopEZ2kuH");
7777
```
7878
replace the Program ID with yours.
7979

80-
1. Build the program binaries:
80+
8. Build the program binaries:
8181
```shell
8282
cargo build
8383
cargo build-bpf
8484
```
8585

86-
1. Prepare to deploy to devnet:
86+
9. Prepare to deploy to devnet:
8787
```shell
8888
solana config set --url https://api.devnet.solana.com
8989
```
9090

91-
1. Score yourself some sweet SOL:
92-
```shell
93-
# Note: airdrop requests are limited to 2 sol per request and 24 sol per account per day
94-
solana airdrop -k owner.json 2
95-
solana airdrop -k owner.json 2
96-
solana airdrop -k owner.json 2
97-
solana airdrop -k owner.json 2
98-
solana airdrop -k owner.json 2
99-
```
100-
You'll use this for transaction fees, rent for your program accounts, and initial reserve liquidity.
101-
102-
1. Deploy the program:
103-
```shell
104-
solana program deploy \
105-
-k owner.json \
106-
--program-id lending.json \
107-
target/deploy/spl_token_lending.so
108-
109-
# Program Id: 6TvznH3B2e3p2mbhufNBpgSrLx6UkgvxtVQvopEZ2kuH
110-
```
111-
If the deployment doesn't succeed, follow [this guide](https://docs.solana.com/cli/deploy-a-program#resuming-a-failed-deploy) to resume it.
112-
113-
1. Wrap some of your SOL as an SPL Token:
114-
```shell
115-
spl-token wrap \
116-
--fee-payer owner.json \
117-
2.0 \
118-
-- owner.json
119-
120-
# Wrapping 2 SOL into AJ2sgpgj6ZeQazPPiDyTYqN9vbj58QMaZQykB9Sr6XY
121-
```
122-
You'll use this for initial reserve liquidity. Note the SPL Token account pubkey (e.g. `AJ2sgpgj6ZeQazPPiDyTYqN9vbj58QMaZQykB9Sr6XY`).
123-
124-
1. Use the [Token Lending CLI](./cli/README.md) to create a lending market and add reserves to it.
91+
10. Score yourself some sweet SOL:
92+
```shell
93+
solana airdrop -k owner.json 10
94+
solana airdrop -k owner.json 10
95+
solana airdrop -k owner.json 10
96+
```
97+
You'll use this for transaction fees, rent for your program accounts, and initial reserve liquidity. If you run
98+
into issues with the airdrop command, see the [docs](https://docs.solana.com/cli/transfer-tokens#airdrop-some-tokens-to-get-started) for more info.
99+
100+
12. Deploy the program:
101+
```shell
102+
solana program deploy \
103+
-k owner.json \
104+
--program-id lending.json \
105+
target/deploy/spl_token_lending.so
106+
107+
# Program Id: 6TvznH3B2e3p2mbhufNBpgSrLx6UkgvxtVQvopEZ2kuH
108+
```
109+
If the deployment doesn't succeed, follow [this guide](https://docs.solana.com/cli/deploy-a-program#resuming-a-failed-deploy) to resume it.
110+
111+
13. Wrap some of your SOL as an SPL Token:
112+
```shell
113+
spl-token wrap \
114+
--fee-payer owner.json \
115+
10.0 \
116+
-- owner.json
117+
118+
# Wrapping 10 SOL into AJ2sgpgj6ZeQazPPiDyTYqN9vbj58QMaZQykB9Sr6XY
119+
```
120+
You'll use this for initial reserve liquidity. Note the SPL Token account pubkey (e.g. `AJ2sgpgj6ZeQazPPiDyTYqN9vbj58QMaZQykB9Sr6XY`).
121+
122+
14. Use the [Token Lending CLI](./cli/README.md) to create a lending market and add reserves to it.

0 commit comments

Comments
 (0)