You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Just tell people we need every example in every language, rather than write out each missing example.
- Move requests for contributions higher
- Add CONTRIBUTING to README (also move it out of .github)
Copy file name to clipboardExpand all lines: README.md
+82-106
Original file line number
Diff line number
Diff line change
@@ -7,259 +7,255 @@ This repo contains Solana onchain programs (referred to as 'Smart Contracts' in
7
7
> [!NOTE]
8
8
> If you're new to Solana, you don't need to create your own programs to perform basic things like making accounts, creating tokens, sending tokens, or minting NFTs. These common tasks are handled with existing programs, for example the System Program (for making account or transferring SOL) or the token program (for creating tokens and NFTs). See the [Solana Developer site](https://solana.com/developers) to learn more.
9
9
10
-
## Using this repo
11
-
12
10
Each folder includes examples for one or more of the following
13
11
14
12
-`anchor` - Written using [Anchor](https://www.anchor-lang.com/), the most popular framework for Solana Development, which uses Rust. Use `anchor build && anchor deploy` to build & deploy the program. Run `anchor run test` to test it.
15
13
-`native` - Written using Solana's native Rust crates and vanilla Rust. Use `cicd.sh` to build & deploy the program. Run `yarn run test` to test it.
16
14
-`seahorse` - Written using the [Seahorse framework](https://seahorse-lang.org/), which converts your Python code to Anchor Rust. Use `seahorse build && anchor deploy` to build & deploy the program. Run `anchor run test` to test it.
17
15
18
-
If a given example is missing, please add it!
19
-
20
-
## The example projects
16
+
**If a given example is missing, please send us a PR to add it!** Our aim is to have every examples available in every option. We'd also love to see more programs involving staking, wrapped tokens, oracles, compression and VRF. Follow the [contributing guidelines](./CONTRIBUTING.md) to keep things consistent.
21
17
22
18
<details>
23
19
<summary>Basics</summary>
24
20
25
-
#### account-data
21
+
###Hello world
26
22
27
-
Store and retrieve data using Solana accounts.
23
+
[Hello World on Solana! A minimal program that logs a greeting.](./basics/hello-solana/README.md)
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!
123
+
[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.
[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.
129
+
[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.
[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.
135
+
[Transfer tokens between accounts](./tokens/transfer-tokens/README.md)
[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.
141
+
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!
###Minting a token from inside a program with a PDA as the mint authority
150
146
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)
147
+
[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.
[Transfer tokens between accounts](./tokens/transfer-tokens/README.md)
153
+
[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)
0 commit comments