@@ -24,62 +24,92 @@ If a given example is missing, please add it!
24
24
25
25
#### account-data
26
26
27
+ Store and retrieve data using Solana accounts.
28
+
27
29
[ anchor] ( ./basics/account-data/anchor ) , [ native] ( ./basics/account-data/native )
28
30
29
31
#### checking-accounts
30
32
33
+ [ Check that the accounts provided in incoming instructions meet particular criteria.] ( ./basics/checking-accounts/README.md )
34
+
31
35
[ anchor] ( ./basics/checking-accounts/anchor ) , [ native] ( ./basics/checking-accounts/native )
32
36
33
37
#### close-account
34
38
39
+ Close an account and get the Lamports back.
40
+
35
41
[ anchor] ( ./basics/close-account/anchor ) , [ native] ( ./basics/close-account/native )
36
42
37
43
#### counter
38
44
45
+ [ Use a PDA to store global state, making a counter that increments when called.] ( ./basics/counter/README.md )
46
+
39
47
[ anchor] ( ./basics/counter/anchor ) , [ native] ( ./basics/counter/native ) , [ seahorse] ( ./basics/counter/seahorse )
40
48
41
49
#### create-account
42
50
51
+ [ Make new accounts on the blockchain.] ( ./basics/create-account/README.md )
52
+
43
53
[ anchor] ( ./basics/create-account/anchor ) , [ native] ( ./basics/create-account/native )
44
54
45
55
#### cross-program-invocation
46
56
57
+ [ Invoke an instruction handler from one onchain program in another onchain program.] ( ./basics/cross-program-invocation/README.md )
58
+
47
59
[ anchor] ( ./basics/cross-program-invocation/anchor ) , [ native] ( ./basics/cross-program-invocation/native )
48
60
49
61
#### favorites
50
62
63
+ Save and update per-user state on the blockchain, ensuring users can only update their own information.
64
+
51
65
[ anchor] ( ./basics/favorites/anchor )
52
66
53
67
#### hello-solana
54
68
69
+ [ Hello World on Solana! A minimal program that logs a greeting.] ( ./basics/hello-solana/README.md )
70
+
55
71
[ anchor] ( ./basics/hello-solana/anchor ) , [ native] ( ./basics/hello-solana/native ) , [ seahorse] ( ./basics/hello-solana/seahorse )
56
72
57
73
#### pda-rent-payer
58
74
75
+ [ Use a PDA to pay the rent for the creation of a new account.] ( ./basics/pda-rent-payer/README.md )
76
+
59
77
[ anchor] ( ./basics/pda-rent-payer/anchor ) , [ native] ( ./basics/pda-rent-payer/native )
60
78
61
79
#### processing-instructions
62
80
81
+ [ Add parameters to an instruction handler and use them.] ( ./basics/processing-instructions/README.md )
82
+
63
83
[ anchor] ( ./basics/processing-instructions/anchor ) , [ native] ( ./basics/processing-instructions/native )
64
84
65
85
#### program-derived-addresses
66
86
87
+ Store and retrieve state in Solana.
88
+
67
89
[ anchor] ( ./basics/program-derived-addresses/anchor ) , [ native] ( ./basics/program-derived-addresses/native )
68
90
69
91
#### realloc
70
92
93
+ How to store state that changes size in Solana.
94
+
71
95
[ anchor] ( ./basics/realloc/anchor ) , [ native] ( ./basics/realloc/native )
72
96
73
97
#### rent
74
98
99
+ [ Determine the necessary minimum rent by calculating an account's size.] ( ./basics/rent/README.md )
100
+
75
101
[ anchor] ( ./basics/rent/anchor ) , [ native] ( ./basics/rent/native )
76
102
77
103
#### repository-layout
78
104
105
+ [ Layout larger Solana onchain programs.] ( ./basics/repository-layout/README.md )
106
+
79
107
[ anchor] ( ./basics/repository-layout/anchor ) , [ native] ( ./basics/repository-layout/native )
80
108
81
109
#### transfer-sol
82
110
111
+ [ Send SOL between two accounts.] ( ./basics/transfer-sol/README.md )
112
+
83
113
[ anchor] ( ./basics/transfer-sol/anchor ) , [ native] ( ./basics/transfer-sol/native ) , [ seahorse] ( ./basics/transfer-sol/seahorse )
84
114
85
115
</details >
@@ -88,30 +118,44 @@ If a given example is missing, please add it!
88
118
89
119
#### create-token
90
120
121
+ [ Create a token on Solana with a token symbol and icon.] ( ./tokens/create-token/README.md )
122
+
91
123
[ anchor] ( ./tokens/create-token/anchor ) , [ native] ( ./tokens/create-token/native )
92
124
93
125
#### escrow
94
126
127
+ Allow two users to swap digital assets with each other, each getting 100% of what the other has offered due to the power of decentralization!
128
+
95
129
[ anchor] ( ./tokens/escrow/anchor )
96
130
97
131
#### nft-minter
98
132
133
+ [ Mint an NFT from inside your own onchain program using the Token and Metaplex Token Metadata programs.] ( ./tokens/nft-minter/README.md ) Reminder: you don't need your own program just to mint an NFT, see the note at the top of this README.
134
+
99
135
[ anchor] ( ./tokens/nft-minter/anchor ) , [ native] ( ./tokens/nft-minter/native )
100
136
101
137
#### pda-mint-authority
102
138
139
+ [ Mint a Token from inside your own onchain program using the Token program.] ( ./tokens/pda-mint-authority/README.md ) Reminder: you don't need your own program just to mint an NFT, see the note at the top of this README.
140
+
103
141
[ anchor] ( ./tokens/pda-mint-authority/anchor ) , [ native] ( ./tokens/pda-mint-authority/native )
104
142
105
143
#### spl-token-minter
106
144
145
+ [ Mint a Token from inside your own onchain program using the Token program.] ( ./tokens/spl-token-minter/README.md ) Reminder: you don't need your own program just to mint an NFT, see the note at the top of this README.
146
+
107
147
[ anchor] ( ./tokens/spl-token-minter/anchor ) , [ native] ( ./tokens/spl-token-minter/native )
108
148
109
149
#### token-swap
110
150
151
+ [ Create liquidity pools to allow trading of new digital assets and allows users that provide liquidity to be rewarded by creating an Automated Market Maker.] ( ./tokens/token-swap/README.md )
152
+
111
153
[ anchor] ( ./tokens/token-swap/anchor )
112
154
113
155
#### transfer-tokens
114
156
157
+ [ Transfer tokens between accounts] ( ./tokens/transfer-tokens/README.md )
158
+
115
159
[ anchor] ( ./tokens/transfer-tokens/anchor ) , [ native] ( ./tokens/transfer-tokens/native ) , [ seahorse] ( ./tokens/transfer-tokens/seahorse )
116
160
117
161
</details >
@@ -122,54 +166,80 @@ If a given example is missing, please add it!
122
166
123
167
#### basics
124
168
169
+ Create token mints, mint tokens, and transferr tokens using Token Extensions.
170
+
125
171
[ anchor] ( ./tokens/token-2022/basics/anchor )
126
172
127
173
#### cpi-guard
128
174
175
+ Enable CPI guard to prevents certain token action from occurring within CPI (Cross-Program Invocation).
176
+
129
177
[ anchor] ( ./tokens/token-2022/cpi-guard/anchor )
130
178
131
179
#### default-account-state
132
180
181
+ Create new token accounts that are frozen by default.
182
+
133
183
[ anchor] ( ./tokens/token-2022/default-account-state/anchor ) , [ native] ( ./tokens/token-2022/default-account-state/native )
134
184
135
185
#### group
136
186
187
+ Create tokens that belong to larger groups of tokens using the Group Pointer extension.
188
+
137
189
[ anchor] ( ./tokens/token-2022/group/anchor )
138
190
139
191
#### immutable-owner
140
192
193
+ Create tokens whose owning program cannot be changed.
194
+
141
195
[ anchor] ( ./tokens/token-2022/immutable-owner/anchor )
142
196
143
197
#### interest-bearing
144
198
199
+ Create tokens that show an 'interest' calculation.
200
+
145
201
[ anchor] ( ./tokens/token-2022/interest-bearing/anchor )
146
202
147
203
#### memo-transfer
148
204
205
+ Create tokens where transfers must have a memo describing the transaction attached.
206
+
149
207
[ anchor] ( ./tokens/token-2022/memo-transfer/anchor )
150
208
151
209
#### metadata
152
210
211
+ Create tokens that store their onchain metadata inside the token mint, without needing to use or pay for additional programs.
212
+
153
213
[ anchor] ( ./tokens/token-2022/metadata/anchor )
154
214
155
215
#### mint-close-authority
156
216
217
+ Allow a designated account to close a Mint.
218
+
157
219
[ anchor] ( ./tokens/token-2022/mint-close-authority/anchor ) , [ native] ( ./tokens/token-2022/mint-close-authority/native )
158
220
159
221
#### multiple-extensions
160
222
223
+ Use multiple Token Extensions at once.
224
+
161
225
[ native] ( ./tokens/token-2022/multiple-extensions/native )
162
226
163
227
#### non-transferable
164
228
229
+ Create tokens that cannot be transferred.
230
+
165
231
[ anchor] ( ./tokens/token-2022/non-transferable/anchor ) , [ native] ( ./tokens/token-2022/non-transferable/native )
166
232
167
233
#### permanent-delegate
168
234
235
+ Create tokens that remain under the control of an account, even when transferred elsewhere.
236
+
169
237
[ anchor] ( ./tokens/token-2022/permanent-delegate/anchor )
170
238
171
239
#### transfer-fee
172
240
241
+ Create tokens
242
+
173
243
[ anchor] ( ./tokens/token-2022/transfer-fee/anchor ) , [ native] ( ./tokens/token-2022/transfer-fee/native )
174
244
175
245
</details >
@@ -179,14 +249,20 @@ If a given example is missing, please add it!
179
249
180
250
#### cnft-burn
181
251
252
+ Burn compressed NFTs.
253
+
182
254
[ anchor] ( ./compression/cnft-burn/anchor )
183
255
184
256
#### cnft-vault
185
257
258
+ Store Metaplex compressed NFTs inside a PDA.
259
+
186
260
[ anchor] ( ./compression/cnft-vault/anchor )
187
261
188
262
#### cutils
189
263
264
+ Work with Metaplex compressed NFTs.
265
+
190
266
[ anchor] ( ./compression/cutils/anchor )
191
267
192
268
</details >
@@ -197,6 +273,8 @@ If a given example is missing, please add it!
197
273
198
274
#### pyth
199
275
276
+ Use a data source for offchain data (called an Oracle) to perform activities onchain.
277
+
200
278
[ anchor] ( ./oracles/pyth/anchor ) , [ seahorse] ( ./oracles/pyth/seahorse )
201
279
202
280
</details >
0 commit comments