@@ -27,23 +27,23 @@ This is optional! You can skip these steps and use the [Token Lending CLI](./cli
27
27
28
28
1 . [ Install the Solana CLI] ( https://docs.solana.com/cli/install-solana-cli-tools )
29
29
30
- 1 . Install the Token and Token Lending CLIs:
30
+ 2 . Install the Token and Token Lending CLIs:
31
31
``` shell
32
32
cargo install spl-token-cli
33
33
cargo install spl-token-lending-cli
34
34
```
35
35
36
- 1 . Clone the SPL repo:
36
+ 3 . Clone the SPL repo:
37
37
``` shell
38
38
git clone https://github.com/solana-labs/solana-program-library.git
39
39
```
40
40
41
- 1 . Go to the new directory:
41
+ 4 . Go to the new directory:
42
42
``` shell
43
43
cd solana-program-library
44
44
```
45
45
46
- 1 . Generate a keypair for yourself:
46
+ 5 . Generate a keypair for yourself:
47
47
``` shell
48
48
solana-keygen new -o owner.json
49
49
@@ -57,7 +57,7 @@ This is optional! You can skip these steps and use the [Token Lending CLI](./cli
57
57
```
58
58
This pubkey will be the owner of the lending market that can add reserves to it.
59
59
60
- 1 . Generate a keypair for the program:
60
+ 6 . Generate a keypair for the program:
61
61
``` shell
62
62
solana-keygen new -o lending.json
63
63
@@ -71,54 +71,52 @@ This is optional! You can skip these steps and use the [Token Lending CLI](./cli
71
71
```
72
72
This pubkey will be your Program ID.
73
73
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
75
75
``` rust
76
76
solana_program :: declare_id! (" 6TvznH3B2e3p2mbhufNBpgSrLx6UkgvxtVQvopEZ2kuH" );
77
77
```
78
78
replace the Program ID with yours.
79
79
80
- 1 . Build the program binaries:
80
+ 8 . Build the program binaries:
81
81
``` shell
82
82
cargo build
83
83
cargo build-bpf
84
84
```
85
85
86
- 1 . Prepare to deploy to devnet:
86
+ 9 . Prepare to deploy to devnet:
87
87
``` shell
88
88
solana config set --url https://api.devnet.solana.com
89
89
```
90
90
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