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

Commit dd8f4d1

Browse files
tjkynert-nelson
authored andcommitted
reverting markdown changes
1 parent 899d1fc commit dd8f4d1

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

token-lending/README.md

Lines changed: 41 additions & 41 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-
2. Install the Token and Token Lending CLIs:
30+
1. Install the Token and Token Lending CLIs:
3131
```shell
3232
cargo install spl-token-cli
3333
cargo install spl-token-lending-cli
3434
```
35-
36-
3. Clone the SPL repo:
35+
36+
1. Clone the SPL repo:
3737
```shell
3838
git clone https://github.com/solana-labs/solana-program-library.git
3939
```
4040

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

46-
5. Generate a keypair for yourself:
46+
1. 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-
6. Generate a keypair for the program:
60+
1. Generate a keypair for the program:
6161
```shell
6262
solana-keygen new -o lending.json
6363

@@ -71,52 +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-
7. Open `./token-lending/program/src/lib.rs` in your editor. In the line
74+
1. 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-
8. Build the program binaries:
80+
1. Build the program binaries:
8181
```shell
8282
cargo build
8383
cargo build-bpf
8484
```
8585

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

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.
91+
1. 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+
1. 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+
1. 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+
1. Use the [Token Lending CLI](./cli/README.md) to create a lending market and add reserves to it.

0 commit comments

Comments
 (0)